fix: inline @shared constants for standalone build

This commit is contained in:
mpak
2026-06-11 14:26:02 +05:00
parent a36f96c290
commit 17a93dde6b
7 changed files with 142 additions and 24 deletions
+1 -3
View File
@@ -4,7 +4,6 @@ import react from '@vitejs/plugin-react'
import { defineConfig } from 'vite'
const rootDir = fileURLToPath(new URL('.', import.meta.url))
const projectRoot = path.resolve(rootDir, '..', '..', 'shop-server')
// https://vite.dev/config/
export default defineConfig({
@@ -12,12 +11,11 @@ export default defineConfig({
resolve: {
alias: {
'@': path.resolve(rootDir, 'src'),
'@shared': path.resolve(projectRoot, 'shared'),
},
},
server: {
fs: {
allow: [path.resolve(rootDir, '..'), projectRoot],
allow: [path.resolve(rootDir, '..')],
},
port: 5173,
proxy: {