Skip to content

Commit 3774dcf

Browse files
committed
chore: fix windows vite usage
1 parent cf8ca93 commit 3774dcf

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

packages/webui/vite.config.mts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ export default defineConfig({
3232

3333
optimizeDeps: {
3434
include: [
35-
...commonJsPaths,
35+
// Add all sofie paths, ensuring they use unix path syntax
36+
...commonJsPaths.map((p) => p.replaceAll('\\', '/')),
3637

3738
// Commonjs monorepo dependencies
3839
'@sofie-automation/blueprints-integration',
@@ -56,9 +57,9 @@ export default defineConfig({
5657

5758
server: {
5859
proxy: {
59-
'/api': 'http://localhost:3000',
60-
'/site.webmanifest': 'http://localhost:3000',
61-
'/meteor-runtime-config.js': 'http://localhost:3000',
60+
'/api': 'http://127.0.0.1:3000',
61+
'/site.webmanifest': 'http://127.0.0.1:3000',
62+
'/meteor-runtime-config.js': 'http://127.0.0.1:3000',
6263
},
6364
},
6465

0 commit comments

Comments
 (0)