vite config on astro.config add all for yarn dev
parent
f405788bb0
commit
316aa09148
|
@ -12,6 +12,11 @@ export default defineConfig({
|
||||||
tailwind()
|
tailwind()
|
||||||
],
|
],
|
||||||
vite: {
|
vite: {
|
||||||
|
server: {
|
||||||
|
host: true, // Allow all hosts
|
||||||
|
// OR specify the exact host:
|
||||||
|
// host: 'chat-with-ai.s38.siliconpin.com',
|
||||||
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
chunkSplitPlugin({
|
chunkSplitPlugin({
|
||||||
strategy: 'default',
|
strategy: 'default',
|
||||||
|
|
|
@ -1,7 +0,0 @@
|
||||||
import { defineConfig } from 'vite';
|
|
||||||
|
|
||||||
export default defineConfig({
|
|
||||||
preview: {
|
|
||||||
allowedHosts: ['chat-with-ai.s38.siliconpin.com']
|
|
||||||
}
|
|
||||||
});
|
|
Loading…
Reference in New Issue