Skip to content

Commit

Permalink
feat(scalingo): use parent app database and env in review apps
Browse files Browse the repository at this point in the history
Signed-off-by: Maud Royer <hello@maudroyer.fr>
  • Loading branch information
jillro committed Sep 11, 2024
1 parent 4f98b5e commit cc073fa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions scalingo.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"addons": []
}
4 changes: 2 additions & 2 deletions src/db/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ export type SearchResult = Selectable<SearchIndexTable>;
const db = new Kysely<Database>({
dialect: new PostgresDialect({
pool: new Pool({
...(process.env.DATABASE_URL
...(process.env.APP_DB_URL
? {
connectionString: process.env.DATABASE_URL,
connectionString: process.env.APP_DB_URL,
}
: {
// .devcontainer config
Expand Down

0 comments on commit cc073fa

Please sign in to comment.