-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update and improve Postgres SvelteKit example (#846)
### Description - update to latest version of Svelte(Kit) - use static environment variable feature for better local development experience - format code - improve readme Related to vercel/feedback#50067 ### Demo URL [<!-- Provide a URL to a live deployment where we can test your PR. If a demo isn't possible feel free to omit this section. -->](https://postgres-sveltekit-nu-eight.vercel.app/) ### Type of Change - [ ] New Example - [x] Example updates (Bug fixes, new features, etc.) - [ ] Other (changes to the codebase, but not to examples) ### New Example Checklist - [ ] 🛫 `npm run new-example` was used to create the example - [ ] 📚 The template wasn't used but I carefuly read the [Adding a new example](https://github.com/vercel/examples#adding-a-new-example) steps and implemented them in the example - [ ] 📱 Is it responsive? Are mobile and tablets considered?
- Loading branch information
1 parent
90b4fac
commit f1d2b20
Showing
7 changed files
with
759 additions
and
519 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
POSTGRES_URL= | ||
POSTGRES_URL_NON_POOLING= | ||
POSTGRES_USER= | ||
POSTGRES_HOST= | ||
POSTGRES_PASSWORD= | ||
POSTGRES_DATABASE= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
f1d2b20
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.
Successfully deployed to the following URLs:
edge-functions-bot-protection-botd – ./edge-middleware/bot-protection-botd
edge-functions-bot-protection-botd-git-main-now-examples.vercel.app
edge-functions-bot-protection-botd-now-examples.vercel.app
edge-functions-bot-protection-botd.vercel.app
edge-functions-bot-protection-botd.vercel.sh
botd.vercel.sh
f1d2b20
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.
Successfully deployed to the following URLs:
edge-functions-bot-protection-datadome – ./edge-middleware/bot-protection-datadome
edge-functions-bot-protection-datadome-now-examples.vercel.app
edge-functions-bot-protection-datadome-git-main-now-examples.vercel.app
edge-functions-bot-protection-datadome.vercel.app
edge-functions-datadome.vercel.sh
edge-functions-bot-protection-datadome.vercel.sh
f1d2b20
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.
Successfully deployed to the following URLs:
edge-functions-ab-testing-simple – ./edge-middleware/ab-testing-simple
edge-functions-ab-testing-simple-now-examples.vercel.app
edge-functions-ab-testing-simple.vercel.app
edge-functions-ab-testing-simple-git-main-now-examples.vercel.app
edge-functions-ab-testing-simple.vercel.sh
f1d2b20
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.
Successfully deployed to the following URLs:
domains-api – ./solutions/domains-api
domains-api-git-main.vercel.rocks
domains-api.vercel.rocks
f1d2b20
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.
Successfully deployed to the following URLs:
alt-tag-generator – ./solutions/alt-tag-generator
alt-text-generator.vercel.app
alt-tag-generator-vercel-solutions-vtest314.vercel.app
alt-tag-generator-git-main-vercel-solutions-vtest314.vercel.app
f1d2b20
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.
Successfully deployed to the following URLs:
cron – ./solutions/cron
cron-git-main.vercel.rocks
cron-template.vercel.app
cron.vercel.rocks
f1d2b20
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.
Successfully deployed to the following URLs:
edge-functions-i18n – ./edge-middleware/i18n
edge-functions-i18n.vercel.app
edge-functions-i18n.vercel.sh
edge-functions-i18n-git-main.vercel.sh
f1d2b20
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.
Successfully deployed to the following URLs:
postgres-kysely – ./storage/postgres-kysely
postgres-kysely.vercel.app
postgres-kysely-git-main.vercel.rocks
postgres-kysely.vercel.rocks
f1d2b20
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.
Successfully deployed to the following URLs:
mint-nft – ./solutions/mint-nft
solutions-mint-nft.vercel.app
mint-nft-kappa.vercel.app
mint-nft-vercel-solutions-vtest314.vercel.app
mint-nft-git-main-vercel-solutions-vtest314.vercel.app
f1d2b20
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.
Successfully deployed to the following URLs:
postgres-starter – ./storage/postgres-starter
postgres-starter.vercel.app
postgres-starter-git-main.vercel.rocks
postgres-starter.vercel.rocks
f1d2b20
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.
Successfully deployed to the following URLs:
edge-functions-crypto – ./edge-middleware/crypto
edge-functions-crypto-now-examples.vercel.app
crypto.vercel.sh
edge-functions-crypto.vercel.app
edge-functions-crypto-git-main-now-examples.vercel.app
edge-functions-crypto.vercel.sh
f1d2b20
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.
Successfully deployed to the following URLs:
redirect-with-fallback – ./app-directory/redirect-with-fallback
redirect-with-fallback-vercel-solutions-vtest314.vercel.app
redirect-with-fallback-git-main-vercel-solutions-vtest314.vercel.app
redirect-with-fallback.vercel.app
f1d2b20
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.
Successfully deployed to the following URLs:
edge-functions-cors – ./edge-functions/cors
edge-functions-cors.vercel.app
edge-functions-cors.vercel.sh
edge-functions-cors-now-examples.vercel.app
edge-functions-cors-git-main-now-examples.vercel.app
f1d2b20
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.
Successfully deployed to the following URLs:
postgres-prisma – ./storage/postgres-prisma
postgres-prisma.vercel.app
postgres-prisma.vercel.rocks
postgres-prisma-git-main.vercel.rocks
f1d2b20
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.
Successfully deployed to the following URLs:
geolocation-script – ./edge-middleware/geolocation-script
geolocation-script-git-main-vercel-solutions-vtest314.vercel.app
geolocation-script.vercel.app
geolocation-script-vercel-solutions-vtest314.vercel.app
f1d2b20
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.
Successfully deployed to the following URLs:
postgres-pgvector – ./storage/postgres-pgvector
postgres-pgvector-git-main.vercel.rocks
postgres-pgvector.vercel.app
postgres-pgvector.vercel.rocks
f1d2b20
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.
Successfully deployed to the following URLs:
kv-redis-starter – ./storage/kv-redis-starter
kv-starter.vercel.app
nextjs-kv-starter.vercel.app
kv-redis-starter.vercel.app
kv-redis-starter-git-main.vercel.rocks
kv-redis-starter.vercel.rocks
f1d2b20
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.
Successfully deployed to the following URLs:
edge-functions-add-header – ./edge-middleware/add-header
edge-functions-add-header.vercel.app
edge-functions-add-header-git-main-now-examples.vercel.app
edge-functions-add-header-now-examples.vercel.app
edge-functions-add-header.vercel.sh
f1d2b20
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.
Successfully deployed to the following URLs:
blob-starter – ./storage/blob-starter
blob-starter.vercel.app
blob-starter-git-main.vercel.rocks
blob-starter.vercel.rocks
f1d2b20
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.
Successfully deployed to the following URLs:
postgres-drizzle – ./storage/postgres-drizzle
postgres-drizzle.vercel.app
postgres-drizzle.vercel.rocks
postgres-drizzle-git-main.vercel.rocks
f1d2b20
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.
Successfully deployed to the following URLs:
edge-functions-basic-auth-password – ./edge-middleware/basic-auth-password
edge-functions-basic-auth-password-git-main-now-examples.vercel.app
edge-password.vercel.app
password-protection.vercel.app
edge-functions-basic-auth-password.vercel.app
edge-functions-basic-auth-password-now-examples.vercel.app
edge-functions-basic-auth-password.vercel.sh
edge-functions-password-protection.vercel.sh
f1d2b20
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.
Successfully deployed to the following URLs:
edge-geolocation-country-block – ./edge-middleware/geolocation-country-block
edge-geolocation-country-block-git-main-now-examples.vercel.app
edge-geolocation-country-block-now-examples.vercel.app
edge-geolocation-country-block.vercel.app
f1d2b20
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.
Successfully deployed to the following URLs:
examples – ./storage/postgres-starter
examples.vercel.rocks
examples-git-main.vercel.rocks
examples-bice.vercel.app
f1d2b20
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.
Successfully deployed to the following URLs:
next-flask – ./python/nextjs-flask
nextjs-python.vercel.app
next-flask.vercel.rocks
nextjs-flask-starter.vercel.app
next-flask-git-main.vercel.rocks