Skip to content

Commit

Permalink
Fix page routing for deployment
Browse files Browse the repository at this point in the history
Add deployment scripts
  • Loading branch information
Schwartz10 committed Feb 9, 2022
1 parent 4772d47 commit ba5ca92
Show file tree
Hide file tree
Showing 9 changed files with 3,917 additions and 108 deletions.
5 changes: 2 additions & 3 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module.exports = {
extends: ['plugin:prettier/recommended', 'next/core-web-vitals', 'prettier'],
plugins: ['prettier'],
plugins: ['@typescript-eslint', 'prettier'],
parser: '@typescript-eslint/parser',
rules: {
'prettier/prettier': 'error',
Expand All @@ -9,7 +9,6 @@ module.exports = {
'no-confusing-arrow': 0,
'arrow-parens': 0,
'implicit-arrow-linebreak': 0,
'no-unused-vars': 1,
'react/jsx-props-no-spreading': 0,
'no-shadow': 1,
'react/destructuring-assignment': 0,
Expand All @@ -25,7 +24,7 @@ module.exports = {
camelcase: 0,
'import/no-named-as-default': 0,
'import/no-anonymous-default-export': 0,
'no-unused-vars': [
'@typescript-eslint/no-unused-vars': [
'error',
{
argsIgnorePattern: '^_'
Expand Down
2 changes: 1 addition & 1 deletion constants.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* PAGES */
export enum PAGE {
LANDING = '/',
ADDRESS = '/address',
ACTOR = '/actor',
MESSAGE = '/message'
}
12 changes: 8 additions & 4 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,24 +24,28 @@ const webpack = (config) => {
module.exports = (phase) => {
if (phase === PHASE_PRODUCTION_SERVER || phase === PHASE_PRODUCTION_BUILD) {
return {
trailingSlash: true,
webpack,
env: {
// this api is configured to be load balanced across multiple nodes,
// if a single node gets sick, it will get dropped and not accept requests
NEXT_PUBLIC_LOTUS_NODE_JSONRPC:
process.env.LOTUS_NODE_JSONRPC || 'https://mainnet.glif.host',
process.env.LOTUS_NODE_JSONRPC || 'https://calibration.node.glif.io',
NEXT_PUBLIC_GRAPH_API_URL:
process.env.GRAPH_API_URL || 'graph.glif.host/query',
// 461'
NEXT_PUBLIC_COIN_TYPE: process.env.COIN_TYPE || 'f',
NEXT_PUBLIC_COIN_TYPE: process.env.COIN_TYPE || 't',
NEXT_PUBLIC_IS_PROD: true,

NEXT_PUBLIC_SENTRY_DSN: process.env.SENTRY_DSN,
NEXT_PUBLIC_SENTRY_ENV: process.env.SENTRY_ENV
NEXT_PUBLIC_SENTRY_DSN:
process.env.SENTRY_DSN ||
'https://[email protected]/6187874',
NEXT_PUBLIC_SENTRY_ENV: process.env.SENTRY_ENV || 'calibration'
}
}
}
return {
trailingSlash: true,
webpack,
env: {
NEXT_PUBLIC_LOTUS_NODE_JSONRPC:
Expand Down
Loading

0 comments on commit ba5ca92

Please sign in to comment.