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.
1 parent 6e53dad commit 468141eCopy full SHA for 468141e
examples/create-vite-config.js
@@ -1,4 +1,5 @@
1
import { basename, dirname } from 'node:path'
2
+import { env } from 'node:process'
3
import { fileURLToPath } from 'node:url'
4
5
import react from '@vitejs/plugin-react'
@@ -9,7 +10,9 @@ import tsconfigPaths from 'vite-tsconfig-paths'
9
10
export default async (url) =>
11
await defineConfig({
12
envPrefix: 'SEAM_',
- base: `./${basename(dirname(fileURLToPath(url)))}`,
13
+ base: env.CI
14
+ ? `/examples/${basename(dirname(fileURLToPath(url)))}`
15
+ : '/',
16
root: dirname(fileURLToPath(url)),
17
plugins: [tsconfigPaths(), react()],
18
server: {
0 commit comments