Allow jabali.lan for docs dev server

This commit is contained in:
root
2026-02-04 17:10:41 +02:00
parent ef7b6419ac
commit 9054f60035
4 changed files with 14 additions and 5 deletions

View File

@@ -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({

View File

@@ -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"

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({
server: {
allowedHosts: 'all',
allowedHosts: true,
},
plugins: [
laravel({