Skip to content

Commit ccbf404

Browse files
committed
fix: update .env.pages file to correctly set VITE_PLAYGROUND_URL path
1 parent 4348091 commit ccbf404

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

preSites.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,10 @@ const envFile = "sites/env/.env.pages";
3232
const envConfig = shell.cat(envFile);
3333
const newEnvConfig = envConfig.split("\n").map((row) => {
3434
if (row.includes("/playground.html")) {
35-
return row.replace("/playground.html", "/tiny-vue-web-doc/playground.html");
35+
return row.replace(
36+
/VITE_PLAYGROUND_URL=(.+)playground.html/,
37+
"VITE_PLAYGROUND_URL=/tiny-vue-web-doc/playground.html"
38+
);
3639
}
3740
return row;
3841
});

0 commit comments

Comments
 (0)