Skip to content

Commit

Permalink
Switch to hybrid rendering for automatic locale detection
Browse files Browse the repository at this point in the history
Node for now, will migrate to Cloudflare later
  • Loading branch information
Southpaw1496 committed Dec 9, 2023
1 parent 7d6b62d commit 9159ddf
Show file tree
Hide file tree
Showing 3 changed files with 121 additions and 365 deletions.
11 changes: 8 additions & 3 deletions astro.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ import sitemap from "@astrojs/sitemap";
import purgecss from "astro-purgecss";
import rehypeAutolinkHeadings from 'rehype-autolink-headings';
import { fromHtml } from 'hast-util-from-html';

import compress from "astro-compress";

import node from "@astrojs/node";

// https://astro.build/config
export default defineConfig({
i18n: {
Expand All @@ -15,7 +16,7 @@ export default defineConfig({
routing: {
prefixDefaultLocale: true,
strategy: "pathname"
},
}
},
site: "https://quiltmc.org",
integrations: [mdx(), sitemap(), purgecss(), compress()],
Expand All @@ -30,5 +31,9 @@ export default defineConfig({
build: {
assetsInlineLimit: 0
}
}
},
output: "hybrid",
adapter: node({
mode: "standalone"
})
});
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"typescript": "^5.2.2"
},
"dependencies": {
"@astrojs/node": "^7.0.0",
"@tsndr/cloudflare-worker-jwt": "^2.3.2",
"astro-compress": "^2.2.3",
"semver-sort": "^1.0.0"
Expand Down
Loading

0 comments on commit 9159ddf

Please sign in to comment.