enzostvs HF Staff commited on
Commit
bdbaf30
·
1 Parent(s): e5424a1

update basePath

Browse files
Files changed (1) hide show
  1. next.config.ts +2 -1
next.config.ts CHANGED
@@ -2,6 +2,7 @@ import type { NextConfig } from "next";
2
 
3
  const nextConfig: NextConfig = {
4
  /* config options here */
 
5
  webpack(config, options) {
6
  const { isServer } = options;
7
  config.module.rules.push({
@@ -13,7 +14,7 @@ const nextConfig: NextConfig = {
13
  options: {
14
  limit: config.inlineImageLimit,
15
  fallback: require.resolve("file-loader"),
16
- publicPath: `${config.assetPrefix}/_next/static/images/`,
17
  outputPath: `${isServer ? "../" : ""}static/images/`,
18
  name: "[name]-[hash].[ext]",
19
  esModule: config.esModule || false,
 
2
 
3
  const nextConfig: NextConfig = {
4
  /* config options here */
5
+ basePath: '/deepsite',
6
  webpack(config, options) {
7
  const { isServer } = options;
8
  config.module.rules.push({
 
14
  options: {
15
  limit: config.inlineImageLimit,
16
  fallback: require.resolve("file-loader"),
17
+ publicPath: `${config.assetPrefix || '/deepsite'}/_next/static/images/`,
18
  outputPath: `${isServer ? "../" : ""}static/images/`,
19
  name: "[name]-[hash].[ext]",
20
  esModule: config.esModule || false,