-
-
Notifications
You must be signed in to change notification settings - Fork 635
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
docs: add supabase guide #297
Changes from 10 commits
b1005ac
dc0fda8
93fca00
8e78631
0b69825
5881514
af6e575
0437d66
62599cb
0a10946
4cbea05
a1c8e25
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -122,7 +122,6 @@ jobs: | |
# Setup environment variables | ||
cp ./.env.example ./.env | ||
cp ./examples/nextjs-test/.env.example ./examples/nextjs-test/.env.local | ||
cp ./packages/database/.env.example ./packages/database/.env | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. not needed anymore due to symlink |
||
|
||
# Build packages | ||
pnpm run build --filter @examples/nextjs-test^... | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,11 +37,11 @@ branch are tagged into a release monthly. | |
``` | ||
pnpm i | ||
``` | ||
4. Create your `.env` files | ||
4. Create your `.env` file | ||
``` | ||
cp .env.example .env && cp packages/database/.env.example packages/database/.env | ||
cp .env.example .env | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. not needed anymore due to symlink |
||
``` | ||
5. Open the root `.env` file and generate a new value for `ENCRYPTION_KEY`: | ||
5. Open it and generate a new value for `ENCRYPTION_KEY`: | ||
|
||
`ENCRYPTION_KEY` is used to two-way encrypt OAuth access tokens and so you'll probably want to actually generate a unique value, and it must be a random 16 byte hex string. You can generate one with the following command: | ||
|
||
|
@@ -178,7 +178,6 @@ To run the end-to-end tests, follow the steps below: | |
```sh | ||
cp ./.env.example ./.env | ||
cp ./examples/nextjs-test/.env.example ./examples/nextjs-test/.env.local | ||
cp ./packages/database/.env.example ./packages/database/.env | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. not needed anymore due to symlink |
||
``` | ||
|
||
2. Set up dependencies | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -94,6 +94,7 @@ function getWorkerQueue() { | |
connectionString: env.DATABASE_URL, | ||
concurrency: 5, | ||
pollInterval: 1000, | ||
noPreparedStatements: env.DATABASE_URL !== env.DIRECT_URL, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No way around this with pooling |
||
}, | ||
schema: workerCatalog, | ||
recurringTasks: { | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../.env |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
node_modules | ||
# Keep environment variables out of version control | ||
.env | ||
# Ensure the .env symlink is not removed by accident | ||
!.env |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can't just be empty as we have to use an env var in schema.prisma