Skip to content

Commit 5a1fbde

Browse files
committed
Allow connections to vite app from mapserver container
1 parent 3a94969 commit 5a1fbde

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

workshop/exercises/app/vite.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ const inputFiles = readdirSync(__dirname)
1212
export default {
1313
base: '', // otherwise assets are located at /assets
1414
server: {
15-
host: true,
15+
host: true, // allow connections from other Docker containers
16+
allowedHosts: ['node', 'geographika.github.io'], // allow access using http://node:5001 from the mapserver container
1617
port: 5001,
1718
watch: {
1819
// fix for Windows on WSL - https://github.com/vitejs/vite/issues/1153

0 commit comments

Comments
 (0)