-
Notifications
You must be signed in to change notification settings - Fork 774
feat(preview-server): isolated development workflow #2249
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: canary
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
f6907b1
to
d0c21e5
Compare
commit: |
2b98429
to
c8efb5e
Compare
d8f671a
to
a641a22
Compare
7e49df3
to
e2e137a
Compare
0acc557
to
416399c
Compare
This implements two scripts for doing dev work on the preview server that is completely separate from the CLI. The first script creates an
emails
directory that is not committed with a simple repeated file structure. The idea is to be able to only work in the preview server with the most simple way.The
seed
command doesn't currently generate anything at random right now because I don't know exactly how we would generate emails in a meaningful way here.The other script actually runs
next dev
and creates an.env.local
with values imitating what the CLI would give the preview server for things to work properly. This needs to be a script because we need to delete theenv
file afternext dev
closes. If we don't, the file can interfere with subsequent builds of the preview server.Testing
cd
intopackages/preview-server
pnpm seed
pnpm turbo dev