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.

Question: How would could I change the directory path for pages

See original GitHub issue

Hello

Firstly, thanks for putting in the time to make such an awesome toolchain, after much searching, Im actually liking your wee setup, its brilliant. Currently modding mine to the lastest react 18 and seeing if the new SSR implementation works.

Thing is I would like to change the location of the pages folder from ./pages/ to ./src/pages/ The setup I tend to use is similar to the CRA struc, (it kinda stuck with me)

./
- node_modules
- build/dist 
- public //static
- src
- src/App/App.js etc
- src/Components/UIComponents
- src/Pages/ <- This is where I would like him,

Is that at all possible??

Many Thanks bud,

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
brilloutcommented, Jun 10, 2021

Hello @aFuzzyBear

Yes, simply mv pages/ src/. (The Filesystem Router uses the common ancestor directory as root.)

if you need a hand with the writing some doc’s for this plugin, I’d be happy to Currently modding mine to the lastest react 18 and seeing if the new SSR implementation works.

I’m interested in playing around with React Server Components. Is that something you’d be interested in exploring? I’d gladly accept a PR for an example /examples/react-server-components/ 😊.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to change directory in Linux using cd command - nixCraft
How can I change a directory or folder in Linux? You need to use the cd command to move from your present directory...
Read more >
How to set relative path to current folder? - html - Stack Overflow
Is it possible to create a relative link on this page that points to http://example.com/folder/ without specifying folder anywhere? (And using ...
Read more >
File path formats on Windows systems | Microsoft Learn
Any thread can change the current directory at any time. Starting with .NET Core 2.1, you can call the Path.GetFullPath(String, String) method ...
Read more >
16.6 The working directory for R code chunks | R Markdown ...
Sometimes you may want to use another directory as the working directory. The usual way to change the working directory is setwd() ,...
Read more >
Navigating Files and Directories – The Unix Shell - Our Lessons
Use options and arguments to change the behaviour of a shell command. ... The home directory path will look different on different operating...
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