b8c49ae97a
* Add with-knex example * Fix with-knex README typo Co-authored-by: Ash Connell <hello@ashconnell.com> Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
15 lines
318 B
JavaScript
15 lines
318 B
JavaScript
const { loadEnvConfig } = require('@next/env')
|
|
|
|
const dev = process.env.NODE_ENV !== 'production'
|
|
const { PG_URI } = loadEnvConfig('./', dev).combinedEnv
|
|
|
|
module.exports = {
|
|
client: 'pg',
|
|
connection: PG_URI,
|
|
migrations: {
|
|
directory: './knex/migrations',
|
|
},
|
|
seeds: {
|
|
directory: './knex/seeds',
|
|
},
|
|
}
|