chore: update project configurations and add Prettier settings
This commit is contained in:
@ -1,8 +1,8 @@
|
||||
import { defineConfig } from 'astro/config';
|
||||
import { defineConfig } from "astro/config";
|
||||
|
||||
import react from '@astrojs/react';
|
||||
import tailwindcss from '@tailwindcss/vite';
|
||||
import icon from 'astro-icon';
|
||||
import react from "@astrojs/react";
|
||||
import tailwindcss from "@tailwindcss/vite";
|
||||
import icon from "astro-icon";
|
||||
|
||||
// https://astro.build/config
|
||||
export default defineConfig({
|
||||
@ -10,34 +10,34 @@ export default defineConfig({
|
||||
react(),
|
||||
icon({
|
||||
include: {
|
||||
ph: ['*'],
|
||||
logos: ['*'],
|
||||
mdi: ['*']
|
||||
}
|
||||
})
|
||||
ph: ["*"],
|
||||
logos: ["*"],
|
||||
mdi: ["*"],
|
||||
},
|
||||
}),
|
||||
],
|
||||
|
||||
vite: {
|
||||
plugins: [tailwindcss()],
|
||||
server: {
|
||||
host: '0.0.0.0',
|
||||
host: "0.0.0.0",
|
||||
allowedHosts: true,
|
||||
cors: {
|
||||
origin: '*',
|
||||
methods: ['GET'],
|
||||
allowedHeaders: ['X-Requested-With']
|
||||
}
|
||||
origin: "*",
|
||||
methods: ["GET"],
|
||||
allowedHeaders: ["X-Requested-With"],
|
||||
},
|
||||
},
|
||||
|
||||
preview: {
|
||||
host: '0.0.0.0',
|
||||
allowedHosts: ['jleibl.net'],
|
||||
host: "0.0.0.0",
|
||||
allowedHosts: ["jleibl.net"],
|
||||
port: 4321,
|
||||
cors: {
|
||||
origin: '*',
|
||||
methods: ['GET'],
|
||||
allowedHeaders: ['X-Requested-With']
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
origin: "*",
|
||||
methods: ["GET"],
|
||||
allowedHeaders: ["X-Requested-With"],
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
|
Reference in New Issue
Block a user