+import { config as dotenv } from 'dotenv';
import type { Knex } from "knex";
-// Update with your config settings.
-
+dotenv();
const config: { [key: string]: Knex.Config } = {
development: {
client: "pg",
connection: {
- database: "tiny_kingdom",
- user: "postgres",
- password: "root"
+ database: process.env.PG_DATABASE,
+ user: process.env.PG_USER,
+ password: process.env.PG_PASSWORD
},
pool: {
min: 2,
production: {
client: "pg",
connection: {
- database: "my_db",
- user: "username",
- password: "password"
+ database: process.env.PG_DATABASE,
+ user: process.env.PG_USER,
+ password: process.env.PG_PASSWORD
},
pool: {
min: 2,
<!doctype html>
<html>
<head>
- <title>Tiny Kingdom</title>
+ <title>Rising Legends</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="/assets/css/reset.css">