Skip to content

Commit 96e031b

Browse files
committed
fix: use GITHUB_ACTIONS env to determine environment
1 parent ae8df8a commit 96e031b

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

svelte.config.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { mdsvex } from "mdsvex";
22
import adapter from "@sveltejs/adapter-static";
33
import { vitePreprocess } from "@sveltejs/vite-plugin-svelte";
4-
import { dev } from "$app/environment";
54

65
/** @type {import("@sveltejs/kit").Config} */
76
const config = {
@@ -11,7 +10,7 @@ const config = {
1110
kit: {
1211
adapter: adapter(),
1312
paths: {
14-
base: dev ? "" : "/site"
13+
base: process.env.GITHUB_ACTIONS === "true" ? "/site" : ""
1514
}
1615
},
1716
extensions: [".svelte", ".svx"]

0 commit comments

Comments
 (0)