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