We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
paths.relative
1 parent afc1c38 commit 6933d8dCopy full SHA for 6933d8d
1 file changed
svelte/svelte.config.js
@@ -18,6 +18,10 @@ const config = {
18
// to be able to serve it alongside the Ember.js app at `/`.
19
// Use empty base path for tests (Vitest unit tests and Playwright e2e tests).
20
base: process.env.VITEST || process.env.PLAYWRIGHT ? '' : '/svelte',
21
+ // Force absolute asset URLs under Playwright so that Percy's DOM
22
+ // serializer captures hrefs that still resolve when the snapshot is
23
+ // rendered at a different URL.
24
+ ...(process.env.PLAYWRIGHT && { relative: false }),
25
},
26
prerender: {
27
origin: `https://${process.env.DOMAIN_NAME ?? 'crates.io'}`,
0 commit comments