Allow jabali.lan for docs dev server

This commit is contained in:
root
2026-02-04 17:10:41 +02:00
committed by root
parent 758412168f
commit fd3be5b1cd
4 changed files with 14 additions and 5 deletions

View File

@@ -4,8 +4,10 @@ import starlight from '@astrojs/starlight';
// https://astro.build/config // https://astro.build/config
export default defineConfig({ export default defineConfig({
vite: {
server: { server: {
allowedHosts: 'all', allowedHosts: true,
},
}, },
integrations: [ integrations: [
starlight({ starlight({

View File

@@ -3,8 +3,8 @@
"type": "module", "type": "module",
"version": "0.0.1", "version": "0.0.1",
"scripts": { "scripts": {
"dev": "astro dev", "dev": "__VITE_ADDITIONAL_SERVER_ALLOWED_HOSTS=jabali.lan astro dev",
"start": "astro dev", "start": "__VITE_ADDITIONAL_SERVER_ALLOWED_HOSTS=jabali.lan astro dev",
"build": "astro build", "build": "astro build",
"preview": "astro preview", "preview": "astro preview",
"astro": "astro" "astro": "astro"

View File

@@ -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'],
},
});

View File

@@ -4,7 +4,7 @@ import tailwindcss from '@tailwindcss/vite';
export default defineConfig({ export default defineConfig({
server: { server: {
allowedHosts: 'all', allowedHosts: true,
}, },
plugins: [ plugins: [
laravel({ laravel({