Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Caching subpath urls #485

Open
jorexe opened this issue Aug 31, 2020 · 0 comments
Open

Caching subpath urls #485

jorexe opened this issue Aug 31, 2020 · 0 comments

Comments

@jorexe
Copy link

jorexe commented Aug 31, 2020

Hi guys, i'm having some issues trying to use multiple applications. Sorry if it is a repeated question, i couldn't find anything for this.

I have a nginx server with following rules:

"/" => Static Landing Page
"/:customercode" => React application with Offline Plugin
"/admin" => Admin app

And my routes:

<Route path="/:customercode" component={CustomerPage} />
<Route path="" component={NotFoundPage} />

I tried adding something like this:

<Route path="/" render={() => window.location.href = "/"; return null;} />

But i didn't work

And when i use a browser to reach "/" or "/admin" i get the "Not found" page of my react application.
I'm not sure if this is something i need to configure in the plugin or in the service worker.

Hope you can help me.

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant