Skip to content

Commit 0f6788c

Browse files
committed
use env path
1 parent 86dc8a7 commit 0f6788c

File tree

4 files changed

+33
-16
lines changed

4 files changed

+33
-16
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,7 @@ jobs:
3030

3131
- name: Install dependencies
3232
run: pnpm install
33-
build:
34-
needs: cache-and-install
35-
runs-on: ubuntu-latest
36-
steps:
33+
3734
- name: Build
3835
run: pnpm build
3936
env:

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"solid-js": "^1.9.3"
1313
},
1414
"devDependencies": {
15+
"@types/node": "^22.10.7",
1516
"typescript": "~5.6.2",
1617
"vite": "^6.0.5",
1718
"vite-plugin-solid": "^2.11.0"

pnpm-lock.yaml

Lines changed: 24 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vite.config.ts

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1-
import { defineConfig } from "vite";
1+
import { defineConfig, loadEnv } from "vite";
22
import solid from "vite-plugin-solid";
33

4-
export default defineConfig({
5-
base: "/grid/",
6-
plugins: [solid()],
4+
export default defineConfig(({ mode }) => {
5+
const env = loadEnv(mode, process.cwd(), "");
6+
return {
7+
plugins: [solid()],
8+
base: env.BASE_PATH,
9+
};
710
});

0 commit comments

Comments
 (0)