Skip to content

Commit

Permalink
chore: update DB connections config
Browse files Browse the repository at this point in the history
Signed-off-by: Francisco Madeira <francisco.madeira@diconium.com>
  • Loading branch information
fgmadeira committed Feb 12, 2024
1 parent 2cc8f36 commit 9cc4899
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 19 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/dashboard-feature-env.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,5 @@ jobs:

- name: Update Environment Variables
run: |
az containerapp ingress show -g RG-ethereal_realms_accelerator -n gh-action-app-$PR_NUMBER | jq -r '.fqdn'
fqdn=$(az containerapp ingress show -g RG-ethereal_realms_accelerator -n ethereal-nexus-app-$PR_NUMBER | jq -r '.fqdn')
az containerapp up -g RG-ethereal_realms_accelerator -n ethereal-nexus-app-$PR_NUMBER --env-vars NEXTAUTH_URL=${fqdn}
18 changes: 0 additions & 18 deletions ethereal-nexus-dashboard/next.config.js
Original file line number Diff line number Diff line change
@@ -1,22 +1,4 @@
/** @type {import('next').NextConfig} */
module.exports = {
output: "standalone",
webpack: (config, { webpack, isServer, nextRuntime }) => {
if (!isServer) {
config.resolve.fallback = {
net: false,
tls: false,
perf_hooks: false,
fs: false,
};
}

if(nextRuntime === 'edge') {
config.plugins.push(new webpack.IgnorePlugin({
resourceRegExp: /^cloudflare:sockets$/,
}))
}

return config
},
};
2 changes: 2 additions & 0 deletions ethereal-nexus-dashboard/src/db/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ const queryClient = postgres(
process.env.PGHOST
}:${process.env.PGPORT}/${process.env.PGDATABASE || 'postgres'}`,
{
max: 30,
idle_timeout: 20,
ssl: true
}
);
Expand Down

0 comments on commit 9cc4899

Please sign in to comment.