mirror of https://github.com/fantasticit/think.git
fix: fix get config in client
This commit is contained in:
parent
fb3a9c01cd
commit
a7e2162288
|
@ -1,14 +1,14 @@
|
||||||
const semi = require('@douyinfe/semi-next').default({});
|
const semi = require('@douyinfe/semi-next').default({});
|
||||||
const TsconfigPathsPlugin = require('tsconfig-paths-webpack-plugin');
|
const TsconfigPathsPlugin = require('tsconfig-paths-webpack-plugin');
|
||||||
const { getConfig } = require('@think/config');
|
const { getConfig } = require('@think/config');
|
||||||
const config = getConfig().client;
|
const config = getConfig();
|
||||||
|
|
||||||
/** @type {import('next').NextConfig} */
|
/** @type {import('next').NextConfig} */
|
||||||
const nextConfig = semi({
|
const nextConfig = semi({
|
||||||
assetPrefix: config.assetPrefix,
|
assetPrefix: config.assetPrefix,
|
||||||
env: {
|
env: {
|
||||||
SERVER_API_URL: config.apiUrl,
|
SERVER_API_URL: config?.client?.apiUrl,
|
||||||
COLLABORATION_API_URL: config.collaborationUrl,
|
COLLABORATION_API_URL: config?.client?.collaborationUrl,
|
||||||
ENABLE_ALIYUN_OSS: !!config?.oss?.aliyun?.accessKeyId,
|
ENABLE_ALIYUN_OSS: !!config?.oss?.aliyun?.accessKeyId,
|
||||||
},
|
},
|
||||||
webpack: (config, { dev, isServer }) => {
|
webpack: (config, { dev, isServer }) => {
|
||||||
|
|
Loading…
Reference in New Issue