Skip to content

Commit

Permalink
🚑️ Fix BASE_PATH is undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
williamchong committed Apr 17, 2023
1 parent dadf164 commit 15e6e53
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
3 changes: 2 additions & 1 deletion config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
const { NODE_ENV, IS_TESTNET } = process.env
const NODE_ENV = process.env.NODE_ENV
const IS_TESTNET = process.env.IS_TESTNET
export const API_PUBLIC_URL = 'https://api.like.co'
export const IPFS_GATEWAY = 'https://cloudflare-ipfs.com'
export const ARWEAVE_GATEWAY = 'https://arweave.net'
Expand Down
7 changes: 6 additions & 1 deletion nuxt.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
import { INDEXER, BASE_PATH, isDev } from './config.js'
import { INDEXER, isDev } from './config.js'
if (isDev) { process.env.DEBUG = 'nuxt:*' }

const BASE_PATH = process.env.BASE_PATH || ''

export default {
env: {
NODE_ENV: process.env.NODE_ENV,
IS_TESTNET: process.env.IS_TESTNET || false,
BASE_PATH,
},
// Global page headers: https://go.nuxtjs.dev/config-head
target: 'static',
Expand Down

0 comments on commit 15e6e53

Please sign in to comment.