Skip to content

armgit / papra

Public Imported from GitHub
0

The minimalistic document archiving platform.

chore(astro): disable session storage (#1258)

Corentin Thomasset842ef0ab9c02
diff --git a/apps/website/astro.config.ts b/apps/website/astro.config.ts
index 7c208a04..1a264adc 100644
--- a/apps/website/astro.config.ts
+++ b/apps/website/astro.config.ts
@@ -41,6 +41,10 @@ export default defineConfig({
],
output: 'static',
+
+ // We don't need sessions, and to prevent cf from provisionning a KV store for us, we use the null driver.
+ session: { driver: { entrypoint: 'unstorage/drivers/null' } },
+
adapter: cloudflare({
// Keep build-time (sharp) image optimization for the static site instead of
// the v14 default 'cloudflare-binding' runtime image service.
diff --git a/apps/website/wrangler.jsonc b/apps/website/wrangler.jsonc
new file mode 100644
index 00000000..8b8f71eb
--- /dev/null
+++ b/apps/website/wrangler.jsonc
@@ -0,0 +1,3 @@
+{
+ "name": "papra-website",
+}