rsnext/examples/with-knex/knexfile.js
Ash Connell b8c49ae97a
Add with-knex example (#17904)
* 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>
2020-11-10 17:45:21 -05:00

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',
},
}