Skip to content

Commit 6811f66

Browse files
Add Cloudflare Workers configuration
1 parent 1232675 commit 6811f66

7 files changed

Lines changed: 5004 additions & 3405 deletions

File tree

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,10 @@ node_modules/
22
dist/
33
dist-*/
44
.astro/
5+
6+
# wrangler files
7+
.wrangler
8+
.dev.vars*
9+
!.dev.vars.example
10+
.env*
11+
!.env.example

astro.config.mjs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
// @ts-check
22
import { defineConfig } from 'astro/config';
33

4+
import cloudflare from "@astrojs/cloudflare";
5+
46
// SITE_VARIANT=aurora builds the standalone aurora.luminusos.org variant:
57
// the Aurora Shell page becomes the site root and links back to the main
68
// site. The wiki and blog are separate repositories.
@@ -17,11 +19,14 @@ export default defineConfig({
1719
site: sites[/** @type {keyof typeof sites} */ (variant)],
1820
outDir: variant ? `./dist-${variant}` : './dist',
1921
trailingSlash: 'ignore',
22+
2023
i18n: {
2124
defaultLocale: 'en',
2225
locales: ['en', 'pt-br'],
2326
routing: {
2427
prefixDefaultLocale: false,
2528
},
2629
},
27-
});
30+
31+
adapter: cloudflare()
32+
});

0 commit comments

Comments
 (0)