chore: update project configurations and add Prettier settings

This commit is contained in:
2025-03-13 21:05:32 +01:00
parent 1f2304144c
commit a261bbd60c
25 changed files with 1100 additions and 940 deletions

View File

@ -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"],
},
},
},
});