Track Garbage Schedule
Note: As of 2023, the garbage schedule is unfortunately now out of date...
This is a React Router 7 application for tracking garbage collection schedules. Built using the React Router 7 template with Cloudflare Pages deployment.
This application is built with:
- React Router 7
- Cloudflare Pages Functions deployment using wrangler.toml
- React 19
- Auto import plugin with React imports set up
- Tailwind CSS
If you need to use a module that is targeted for Node, try adding nodejs_compat to the wrangler.json:
{
"compatibility_flags": ["nodejs_compat"]
}And add the module to the SSR externals list in vite.config.ts:
ssr: {
external: [
'node:async_hooks',
+ 'nodemailer',
],
},Run the dev server:
pnpm devTo run Wrangler:
pnpm build
pnpm startWarning
Cloudflare does not use wrangler.toml to configure deployment bindings.
You MUST configure deployment bindings manually in the Cloudflare dashboard.
First, build your app for production:
pnpm buildThen, deploy your app to Cloudflare Pages:
pnpm run deployThis template comes with Tailwind CSS already configured for a simple default starting experience. You can use whatever css framework you prefer. See the Vite docs on css for more information.