question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Feature: Custom Path for server

See original GitHub issue

It would be nice to add a custom path for local server. Right now when you spin up the local server it builds out a dist directory to serve from. This creates a permissions conflict when using https with port 443 and when your builds export to dist as well.

paths: {
    src: 'src', // The source directory. Must include an index.js entry file.
    serve: 'local' // The directory local server runs from
    dist: 'dist', // The output directory.
    public: 'public' // The public directory (files copied to dist during build)
  },

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
poorpaddycommented, Nov 15, 2017

Hi @EmilTholin,

Yes, I’m currently using it but not sure how to stop it from generating dist everytime react-static runs.

devServer: {
    host: 'local.xxxx.com',
    historyApiFallback: true,
    https: (USE_HTTPS) ? {
      key: fs.readFileSync('./cert/local-xxxx-com.pem'),
      cert: fs.readFileSync('./cert/local-xxxx-com.pem'),
      ca: fs.readFileSync('./cert/local-xxxx-com.pem')
    } : false,
    disableHostCheck: true,
    port: USE_HTTPS ? 443 : 5000
  },
0reactions
tannerlinsleycommented, Nov 17, 2017

Should be available in the latest release as a new config option: config.paths.devDist 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Advanced Features: Custom Server - Next.js
A custom Next. js server allows you to start a server 100% programmatically in order to use custom server patterns. Most of the...
Read more >
File path formats on Windows systems | Microsoft Learn
In this article, learn about file path formats on Windows systems, such as traditional DOS paths, DOS device paths, and universal naming ...
Read more >
Feature request: Custom path variables · Issue #209 - GitHub
The path variable GOGS_CONFIG is only for the app.ini config file. But I think a own path variable for the custom directory is...
Read more >
Custom installation directory - Octopus Deploy
The custom installation directory feature deploys your package to a specified location on the target server. This feature helps when you are using...
Read more >
Adding a Custom Proxy Path - Carbon 4.3.0
Adding a custom proxy path is useful when you have a proxy server fronting your Carbon server. In this scenario, the "custom proxy...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found