Skip to content

Commit

Permalink
feat: update variable (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hoanle396 authored Aug 7, 2024
1 parent ab9eda2 commit 5b78f89
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ on:
push:
branches:
- develop
- main
env:
CRAWL_API_URL: ${{ vars.CRAWL_API_URL }}
AUTH_TOKEN: ${{ vars.AUTH_TOKEN }}
CRAWL_API_URL: ${{ secrets.CRAWL_API_URL }}
AUTH_TOKEN: ${{ secrets.AUTH_TOKEN }}

jobs:
handle-commit:
Expand Down
3 changes: 2 additions & 1 deletion apps/web/next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@ const nextConfig = {
remotePatterns: [
{
hostname: 'images.thedapplist.com',
}
},
],
},
env: {
NEXT_PUBLIC_API_URL: process.env.NEXT_PUBLIC_API_URL,
},
output: 'standalone',
}

export default nextConfig
2 changes: 1 addition & 1 deletion apps/web/src/constants/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export const API_URL =
process.env.NEXT_PUBLIC_API_URL || 'http://localhost:3001/api'
process.env.NEXT_PUBLIC_API_URL || 'https://builtongno.var-meta.com/api'
export const DEFAULT_API_RETURN = {
data: [],
pagination: {
Expand Down

0 comments on commit 5b78f89

Please sign in to comment.