No description
Find a file
Rajpreet0 711b02dffb fix: address code review findings on PWA/push feature
- serwist route: force useNativeEsbuild to avoid depending on the
  esbuild-wasm auto-detection fallback
- InstallPrompt/NotificationPrompt: switch to useSyncExternalStore so
  browser-dependent eligibility no longer causes a hydration mismatch
  and no longer sets state synchronously inside an effect body
- NotificationPrompt: a failed subscribe/server-registration no longer
  permanently dismisses the prompt (localStorage), keeping an in-app
  retry path; a granted-but-unregistered subscription is detected via
  pushManager.getSubscription() and re-offers the prompt
- send-push: bound each webpush.sendNotification call with a timeout
  so an unresponsive endpoint can't leave the settle indefinitely
- push-subscription-actions: validate endpoint against an allowlist of
  known push service origins before persisting (SSRF hardening), and
  scope unsubscribeFromPush to the authenticated recipient
- create-notification: wrap the push side-effect in next/server's
  after() so a serverless function isn't frozen mid-delivery
- DiscountCodeList: disable close/cancel controls while a save is
  in flight

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-14 16:51:12 +02:00
.github/workflows update github actions pipeline 2025-12-17 18:04:22 +01:00
.husky fix tests 2026-08-17 15:50:46 +02:00
.vscode added auth comments 2026-05-05 18:08:58 +02:00
config initalized project 2025-11-02 19:15:27 +01:00
messages changed auth design 2026-08-03 19:37:10 +02:00
prisma added pwa infrastructure and push notifcation 2026-09-14 16:26:18 +02:00
public added pwa infrastructure and push notifcation 2026-09-14 16:26:18 +02:00
scripts see comments 2026-08-17 20:47:16 +02:00
src fix: address code review findings on PWA/push feature 2026-09-14 16:51:12 +02:00
tests fix merge conflict 2026-09-11 12:23:43 +02:00
.gitignore added sentry error monitoring 2026-08-04 14:17:53 +02:00
.prettierignore initalized project 2025-11-02 19:15:27 +01:00
AGENTS.md added pwa infrastructure and push notifcation 2026-09-14 16:26:18 +02:00
CLAUDE.md added pwa infrastructure and push notifcation 2026-09-14 16:26:18 +02:00
components.json initalized project 2025-11-02 19:15:27 +01:00
DEPLOYMENT.md added automatic image downsizer for vercel image optimization 2026-07-30 17:28:42 +02:00
eslint.config.mjs added ui form for course creation 2025-12-07 14:25:22 +01:00
next.config.ts added pwa infrastructure and push notifcation 2026-09-14 16:26:18 +02:00
package-lock.json fix: add esbuild-wasm dependency for serwist CI build 2026-09-14 16:32:15 +02:00
package.json fix: add esbuild-wasm dependency for serwist CI build 2026-09-14 16:32:15 +02:00
postcss.config.mjs Initial commit from Create Next App 2025-11-02 18:35:52 +01:00
prisma.config.ts changed prisma queryEngine 2026-08-14 14:15:04 +02:00
README.md Initial commit from Create Next App 2025-11-02 18:35:52 +01:00
sentry.edge.config.ts added sentry error monitoring 2026-08-04 14:17:53 +02:00
sentry.server.config.ts added sentry error monitoring 2026-08-04 14:17:53 +02:00
tsconfig.json see comments 2026-04-27 20:42:41 +02:00
tsconfig.test.json fix build 2026-04-27 20:34:39 +02:00
vitest.config.ts fix build 2026-04-27 20:34:39 +02:00
vitest.setup.ts added unit test framework 2026-04-27 20:28:43 +02:00

This is a Next.js project bootstrapped with create-next-app.

Getting Started

First, run the development server:

npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev

Open http://localhost:3000 with your browser to see the result.

You can start editing the page by modifying app/page.tsx. The page auto-updates as you edit the file.

This project uses next/font to automatically optimize and load Geist, a new font family for Vercel.

Learn More

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

Deploy on Vercel

The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.

Check out our Next.js deployment documentation for more details.