Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Mar 30, 2022. It is now read-only.

Commit 5743662

Browse files
committed
further change env
1 parent 452d338 commit 5743662

File tree

4 files changed

+5
-24
lines changed

4 files changed

+5
-24
lines changed

‎configs/env.mapping.js

Lines changed: 0 additions & 19 deletions
This file was deleted.

‎next.config.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,15 @@ const webpack = require('webpack');
66
const defaultCache = require('next-pwa/cache');
77
const { dependencies } = require('./package-lock.json');
88

9+
/* eslint-disable prefer-destructuring */
910
const isProd = process.env.NODE_ENV === 'production';
1011
const LINK_PREFIX = process.env.NEXT_PUBLIC_LINK_PREFIX || '';
1112
const FOLDER = LINK_PREFIX && LINK_PREFIX.substring(1);
1213
const THEME_COLOR = process.env.NEXT_PUBLIC_THEME_COLOR;
1314
const ICON_192_PATH = process.env.NEXT_PUBLIC_ICON_192_PATH;
1415
const ICON_512_PATH = process.env.NEXT_PUBLIC_ICON_512_PATH;
15-
const { SHORT_NAME } = process.env;
16+
const SHORT_NAME = process.env.SHORT_NAME || '';
17+
/* eslint-enable prefer-destructuring */
1618

1719
// tranfrom precache url for browsers that encode dynamic routes
1820
// i.e. "[id].js" => "%5Bid%5D.js"

‎src/sql/connection/connection.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {
66
} from 'typeorm/browser';
77
import { Hello } from '../entities/Hello';
88

9-
const isProd = process.env.ENV === 'production';
9+
const isProd = process.env.NODE_ENV === 'production';
1010
const defaultConnectionName = 'sqlJsDb';
1111
export const defaultEntities = [Hello];
1212

‎src/stores/index.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,10 @@ import { MakeStoreArg } from 'utils/redux/withRedux';
22
import configureStore from 'utils/redux/configureStore';
33
import { commonReducer } from 'reducers/reducerCombo';
44

5-
console.log(process.env.NODE_ENV);
6-
75
const makeStore = ({ preloadedState }: MakeStoreArg<any>) => {
86
return configureStore({
97
reducer: commonReducer,
10-
devTools: process.env.ENV !== 'production',
8+
devTools: process.env.NODE_ENV !== 'production',
119
preloadedState,
1210
});
1311
};

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /