Allow jabali.lan for docs dev server
This commit is contained in:
@@ -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({
|
||||
|
||||
@@ -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"
|
||||
|
||||
7
doccs/site/vite.config.js
Normal file
7
doccs/site/vite.config.js
Normal 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'],
|
||||
},
|
||||
});
|
||||
@@ -4,7 +4,7 @@ import tailwindcss from '@tailwindcss/vite';
|
||||
|
||||
export default defineConfig({
|
||||
server: {
|
||||
allowedHosts: 'all',
|
||||
allowedHosts: true,
|
||||
},
|
||||
plugins: [
|
||||
laravel({
|
||||
|
||||
Reference in New Issue
Block a user