chore(infra): trying supabase w/ do app
authorxangelo <me@xangelo.ca>
Thu, 5 Dec 2024 05:12:08 +0000 (00:12 -0500)
committerxangelo <me@xangelo.ca>
Thu, 5 Dec 2024 05:26:17 +0000 (00:26 -0500)
.github/workflows/build.yml
knexfile.ts
package.json
src/server/lib/db.ts

index 40d8408ca7fc78733dcbb978e3878e9d1eb47df3..5d35b88d9cb3d344094f9f3a06c9dae33bf36cf4 100644 (file)
@@ -23,10 +23,4 @@ jobs:
       run: npm ci
       
     - name: Build
-      run: npm run build
-    
-    - name: Upload build artifacts
-      uses: actions/upload-artifact@v3
-      with:
-        name: dist
-        path: .
+      run: npm run build
\ No newline at end of file
index e859fa3e052ac00969d34a600ac3b925eb908caf..3b52466de073ae1e85a2b532ca7a799b8a03cb3d 100644 (file)
@@ -6,7 +6,6 @@ import path from 'path';
 dotenv();
 
 const connectionUrl = process.env.DATABASE_URL;
-writeFileSync(path.join(__dirname, 'ca.cert'), process.env.CA_CERT as string);
 
 const config: { [key: string]: Knex.Config } = {
   development: {
index e692d29f8801ecea307f177883e9cb914a2594d8..2d669a069f31940cdd246aaa81a5f46d53da020c 100644 (file)
@@ -19,6 +19,7 @@
     "content:refresh:monsters": "npm run ts-node -- ./seeds/monsters.ts",
     "content:refresh:items": "npm run ts-node -- ./seeds/shop_items.ts",
     "content:refresh:drops": "npm run ts-node -- ./seeds/drop-tables.ts",
+    "content:refresh:dungeons": "npm run ts-node -- ./seeds/dungeons.ts",
     "release": "npx standard-version && npm run copy-changelog",
     "copy-changelog": "cp ./CHANGELOG.md ~/repos/xangelo.ca/static/",
     "release:minor": "npx standard-version --release-as minor",
index a9d45bc5f280f140c8c570ec4d303b900319be5e..a9876b0bcd302d0a0314a3542ad447dbee011141 100644 (file)
@@ -5,11 +5,9 @@ import path from 'path';
 
 dotenv();
 
-const connectionUrl = process.env.DATABASE_URL;
-
 export const db = knex({
   client: 'pg',
   connection: {
-    connectionString: connectionUrl
+    connectionString: process.env.DATABASE_URL
   }
 });
\ No newline at end of file