File tree Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Original file line number Diff line number Diff line change 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 :
Original file line number Diff line number Diff line change 1- import { defineConfig } from "vite" ;
1+ import { defineConfig , loadEnv } from "vite" ;
22import solid from "vite-plugin-solid" ;
33
4- export default defineConfig ( {
5- base : "/grid/" ,
6- plugins : [ solid ( ) ] ,
4+ export default defineConfig ( ( { command, mode } ) => {
5+ // Load env file based on `mode` in the current working directory.
6+ // Set the third parameter to '' to load all env regardless of the `VITE_` prefix.
7+ const env = loadEnv ( mode , process . cwd ( ) , "" ) ;
8+ return {
9+ plugins : [ solid ( ) ] ,
10+ base : env . BASE_PATH ,
11+ } ;
712} ) ;
You can’t perform that action at this time.
0 commit comments