@rspress/core 1.7.2 → 1.7.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -4852,8 +4852,10 @@ async function createInternalBuildConfig(userDocRoot, config, isSSR, routeServic
4852
4852
  node: ["node >= 14"]
4853
4853
  };
4854
4854
  return {
4855
+ server: {
4856
+ port: !isProduction() && process.env.PORT ? Number(process.env.PORT) : void 0
4857
+ },
4855
4858
  dev: {
4856
- port: process.env.PORT ? Number(process.env.PORT) : void 0,
4857
4859
  progressBar: false,
4858
4860
  // Serve static files
4859
4861
  setupMiddlewares: [
@@ -4863,11 +4865,7 @@ async function createInternalBuildConfig(userDocRoot, config, isSSR, routeServic
4863
4865
  }
4864
4866
  middlewares.push(serveSearchIndexMiddleware(config));
4865
4867
  }
4866
- ],
4867
- historyApiFallback: {
4868
- // not support fallback the requested path which contain a . (DOT) character by default
4869
- rewrites: [{ from: /.*\.html/, to: "/" }]
4870
- }
4868
+ ]
4871
4869
  },
4872
4870
  html: {
4873
4871
  favicon: normalizeIcon(config?.icon),