Skip to content
Draft
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,4 @@ erl_crash.dump
/blob-report/
/playwright/.cache/
/playwright/.auth/
.wrangler
10 changes: 6 additions & 4 deletions packages/web/astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
// @ts-check
import node from "@astrojs/node";
import solid from "@astrojs/solid-js";
import tailwindcss from "@tailwindcss/vite";
import { defineConfig, envField, logHandlers, memoryCache } from "astro/config";

import cloudflare from "@astrojs/cloudflare";

export default defineConfig({
site: "https://grumma.org",
security: {
Expand All @@ -22,10 +23,11 @@ export default defineConfig({
integrations: [solid()],
vite: {
plugins: [tailwindcss()],
resolve: {
conditions: ["workerd"],
},
},
cache: { provider: memoryCache() },
output: "server",
adapter: node({
mode: "standalone",
}),
adapter: cloudflare(),
});
10 changes: 7 additions & 3 deletions packages/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,19 @@
"name": "web",
"type": "module",
"version": "0.0.1",
"packageManager": "pnpm@11.21.0",
"scripts": {
"dev": "astro dev",
"start": "astro dev",
"type-check": "astro check",
"build": "astro check && astro build",
"preview": "astro preview",
"astro": "astro"
"preview": "pnpm run build && wrangler dev",
"astro": "astro",
"generate-types": "wrangler types",
"deploy": "pnpm run build && wrangler deploy"
},
"dependencies": {
"@astrojs/cloudflare": "^14.2.1",
"@astrojs/node": "11.1.1",
"@astrojs/solid-js": "7.0.2",
"@astrojs/ts-plugin": "1.10.10",
Expand Down Expand Up @@ -52,7 +56,7 @@
"@astrojs/check": "0.9.10",
"@types/node": "^26.2.0",
"tailwindcss": "^4.2.1",
"vitest": "^4.1.10"
"wrangler": "^4.121.0"
},
"peerDependencies": {
"typescript": "catalog:"
Expand Down
2 changes: 2 additions & 0 deletions packages/web/public/.assetsignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
_worker.js
_routes.json
2 changes: 1 addition & 1 deletion packages/web/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@
"typeRoots": ["node_modules/@types", "src/types"]
},
"exclude": ["node_modules", "dist", "./apps/storybook"],
"include": [".astro/types.d.ts", "**/*"]
"include": [".astro/types.d.ts", "**/*", "./worker-configuration.d.ts"]
}
20 changes: 20 additions & 0 deletions packages/web/wrangler.jsonc
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"$schema": "./node_modules/wrangler/config-schema.json",
"compatibility_date": "2026-08-11",
"compatibility_flags": ["global_fetch_strictly_public", "nodejs_compat"],
"name": "web",
"main": "@astrojs/cloudflare/entrypoints/server",
"assets": {
"directory": "./dist",
"binding": "ASSETS"
},
"observability": {
"logs": {
"enabled": true,
"invocation_logs": false
},
"traces": {
"enabled": false
}
}
}
Loading