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
|
// https://astro.build/config
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
|
vite: {
|
||||||
server: {
|
server: {
|
||||||
allowedHosts: 'all',
|
allowedHosts: true,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
integrations: [
|
integrations: [
|
||||||
starlight({
|
starlight({
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|||||||
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({
|
export default defineConfig({
|
||||||
server: {
|
server: {
|
||||||
allowedHosts: 'all',
|
allowedHosts: true,
|
||||||
},
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
laravel({
|
laravel({
|
||||||
|
|||||||
Reference in New Issue
Block a user