Skip to content

Refactor Next.js demo#920

Merged
bean1352 merged 14 commits intomainfrom
refactor-nextjs-demo
Apr 14, 2026
Merged

Refactor Next.js demo#920
bean1352 merged 14 commits intomainfrom
refactor-nextjs-demo

Conversation

@bean1352
Copy link
Copy Markdown
Contributor

@bean1352 bean1352 commented Apr 1, 2026

  • Scaffold a local PowerSync service (Docker Compose + sync config) so the demo runs fully self-contained
  • Replace MUI/Emotion with Tailwind CSS v4
  • Add API routes for JWT auth (/api/auth/token, /api/auth/keys) and CRUD writes (/api/data)
  • Support POWERSYNC_PRIVATE_KEY/POWERSYNC_PUBLIC_KEY env vars, auto-generate a temporary key pair if not set
  • Make root layout a server component with metadata export
  • Extract interactive sync UI into a SyncedContent client component

@bean1352 bean1352 requested a review from joshuabrink April 1, 2026 14:19
@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Apr 1, 2026

⚠️ No Changeset found

Latest commit: 5430e63

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@bean1352 bean1352 requested a review from khawarizmus April 2, 2026 07:07
khawarizmus
khawarizmus previously approved these changes Apr 13, 2026
Comment thread demos/example-nextjs/src/components/StatusPanel.tsx
Comment thread demos/example-nextjs/src/library/auth-keys.ts Outdated
@khawarizmus khawarizmus self-requested a review April 13, 2026 09:45
khawarizmus
khawarizmus previously approved these changes Apr 13, 2026
@bean1352 bean1352 marked this pull request as ready for review April 14, 2026 10:51
Comment thread demos/example-nextjs/src/app/api/data/route.ts
Comment thread demos/example-nextjs/package.json Outdated
Comment thread demos/example-nextjs/powersync/service.yaml
@bean1352 bean1352 requested a review from joshuabrink April 14, 2026 12:07
Copy link
Copy Markdown
Contributor

@joshuabrink joshuabrink left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

@bean1352 bean1352 requested a review from Chriztiaan April 14, 2026 12:57
Copy link
Copy Markdown
Contributor

@Chriztiaan Chriztiaan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, I haven't manually tested though.

@bean1352 bean1352 merged commit 3f8f3f6 into main Apr 14, 2026
11 checks passed
@bean1352 bean1352 deleted the refactor-nextjs-demo branch April 14, 2026 13:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants