feat: initial commit
This commit is contained in:
commit
0ff7457679
192 changed files with 24379 additions and 0 deletions
69
astro.config.mjs
Normal file
69
astro.config.mjs
Normal file
|
@ -0,0 +1,69 @@
|
|||
import { defineConfig } from "astro/config";
|
||||
import cloudflare from "@astrojs/cloudflare";
|
||||
import sitemap from "@astrojs/sitemap";
|
||||
|
||||
export default defineConfig({
|
||||
site: "https://coryd.dev",
|
||||
output: "server",
|
||||
adapter: cloudflare(),
|
||||
integrations: [sitemap()],
|
||||
vite: {
|
||||
build: {
|
||||
minify: "terser",
|
||||
terserOptions: {
|
||||
compress: {
|
||||
drop_console: true,
|
||||
drop_debugger: true,
|
||||
ecma: 2020,
|
||||
passes: 3,
|
||||
module: true,
|
||||
toplevel: true,
|
||||
},
|
||||
mangle: {
|
||||
safari10: true,
|
||||
properties: {
|
||||
regex: /^_/,
|
||||
},
|
||||
},
|
||||
format: {
|
||||
comments: false,
|
||||
ascii_only: true,
|
||||
},
|
||||
},
|
||||
sourcemap: false,
|
||||
rollupOptions: {
|
||||
treeshake: true,
|
||||
external: ["/js/script.js"],
|
||||
output: {
|
||||
manualChunks(id) {
|
||||
if (id.includes("node_modules")) {
|
||||
if (id.includes("@supabase")) return "supabase-vendor";
|
||||
if (id.includes("highlight.js")) return "highlight-vendor";
|
||||
}
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
optimizeDeps: {
|
||||
include: [
|
||||
"@astrojs/sitemap",
|
||||
"date-fns",
|
||||
"highlight.js",
|
||||
"minisearch",
|
||||
"@supabase/supabase-js",
|
||||
"@cdransf/astro-tabler-icons",
|
||||
],
|
||||
},
|
||||
resolve: {
|
||||
alias: {
|
||||
"@components": "/src/components",
|
||||
"@data": "/src/utils/data",
|
||||
"@layouts": "/src/layouts",
|
||||
"@npm": "/node_modules",
|
||||
"@scripts": "/src/scripts",
|
||||
"@styles": "/src/styles",
|
||||
"@utils": "/src/utils",
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
Reference in a new issue