enzostvs HF Staff commited on
Commit
d3c131f
·
1 Parent(s): ada9ced

back to old

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