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.

How do you add a route?

See original GitHub issue

Excuse my connect newbieshness, but how do you add a route to the BrowserSync server, like you would in connect?

var connect = require('connect'),
    app = connect()
      .use('/bower_components', connect.static('bower_components'));

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:15 (8 by maintainers)

github_iconTop GitHub Comments

6reactions
drKnoxycommented, Jan 7, 2016

This took me a little while to figure out, so if anyone else is googling around for where to add the “extensions” parameter like you would for express’ static-serve module, which sets the default extensions to try.

ie. You are trying to have your urls written like site.com/features and the server will try files site.com/features.html

server: {
    baseDir: './dist',
    serveStaticOptions: {
        extensions: ['html']
    },
},
0reactions
MillerRencommented, Aug 16, 2014

@shakyShane Thanks so much for the feature.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Add a Static TCP/IP Route to the Windows Routing Table
To add a static route to the routing table, open Command Prompt and run “route add” followed by a destination network address, a...
Read more >
Computer Networks/Route/Modify - Wikiversity
Add a Route Edit · Type route add 0.0.0.0 mask 0.0.0.0 <gateway>, where <gateway> is the gateway address listed for network destination 0.0.0.0...
Read more >
How To Add A Static Route To The Windows Routing Table
Then You need to add a static route. To add or view the routing table we need to open up Command Prompt: 0ilosahred3434....
Read more >
ip route add network command for Linux explained - nixCraft
Add a static route on Linux ; su - OR use the sudo as follows: ; sudo -i. Once become a root user,...
Read more >
add route on windows ?? - Microsoft Q&A
So if you wanted to add a route specifying that all traffic bound for the 192.168.151.0 subnet went to a gateway at 192.168.8.1...
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