Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ services:
volumes:
- ./view-user:/app
working_dir: /app
command: sh -c "npm ci && npm run dev"
command: sh -c "npm i && npm run dev"
ports:
- "3000:3000"
env_file:
Expand All @@ -51,7 +51,7 @@ services:
volumes:
- ./view-admin:/app
working_dir: /app
command: sh -c "npm ci && npm run dev"
command: sh -c "npm i && npm run dev"
ports:
- "3001:3000"
env_file:
Expand Down
2 changes: 1 addition & 1 deletion view-admin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev",
"dev": "next dev --turbo",
"build": "next build",
"start": "next start",
"lint": "next lint",
Expand Down
32 changes: 21 additions & 11 deletions view-user/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,29 @@ const nextConfig = {
],
disableStaticImages: true,
},
webpack: (config) => {
config.module.rules.push({
test: /\.svg$/,
use: [
{
loader: "@svgr/webpack",
options: {
svgo: false,
},
experimental: {
turbo: {
rules: {
"*.svg": {
loaders: ["@svgr/webpack"],
as: "*.js",
},
},
resolveAlias: {
underscore: "lodash",
mocha: { browser: "mocha/browser-entry.js" },
},
resolveExtensions: [
".mdx",
".tsx",
".ts",
".jsx",
".js",
".mjs",
".json",
],
});
return config;
moduleIdStrategy: "deterministic",
},
},
};

Expand Down
2 changes: 1 addition & 1 deletion view-user/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev",
"dev": "next dev --turbo",
"build": "next build",
"start": "next start",
"lint": "next lint",
Expand Down