diff --git a/doccs/site/astro.config.mjs b/doccs/site/astro.config.mjs index d383389..58f5a91 100644 --- a/doccs/site/astro.config.mjs +++ b/doccs/site/astro.config.mjs @@ -4,8 +4,10 @@ import starlight from '@astrojs/starlight'; // https://astro.build/config export default defineConfig({ - server: { - allowedHosts: 'all', + vite: { + server: { + allowedHosts: true, + }, }, integrations: [ starlight({ diff --git a/doccs/site/package.json b/doccs/site/package.json index 10b3ca1..8c089ac 100644 --- a/doccs/site/package.json +++ b/doccs/site/package.json @@ -3,8 +3,8 @@ "type": "module", "version": "0.0.1", "scripts": { - "dev": "astro dev", - "start": "astro dev", + "dev": "__VITE_ADDITIONAL_SERVER_ALLOWED_HOSTS=jabali.lan astro dev", + "start": "__VITE_ADDITIONAL_SERVER_ALLOWED_HOSTS=jabali.lan astro dev", "build": "astro build", "preview": "astro preview", "astro": "astro" diff --git a/doccs/site/vite.config.js b/doccs/site/vite.config.js new file mode 100644 index 0000000..a5e4fc6 --- /dev/null +++ b/doccs/site/vite.config.js @@ -0,0 +1,7 @@ +import { defineConfig } from 'vite'; + +export default defineConfig({ + server: { + allowedHosts: ['jabali.lan', '.jabali.lan', '192.168.100.236', 'localhost', '127.0.0.1'], + }, +}); diff --git a/vite.config.js b/vite.config.js index da7fcb9..a5d49f8 100644 --- a/vite.config.js +++ b/vite.config.js @@ -4,7 +4,7 @@ import tailwindcss from '@tailwindcss/vite'; export default defineConfig({ server: { - allowedHosts: 'all', + allowedHosts: true, }, plugins: [ laravel({