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

I can't get 'start_url' to work for me #129

Open
marcbejar opened this issue Apr 12, 2024 · 0 comments
Open

I can't get 'start_url' to work for me #129

marcbejar opened this issue Apr 12, 2024 · 0 comments

Comments

@marcbejar
Copy link

marcbejar commented Apr 12, 2024

I hava a NUXT App that has 4 main routes:

/ -> The index page that will act as the sales page.
/pro -> The dashboard where registered users can set a profile with a username
/auth -> Where users signIn
/[username] -> The public profile generated by a user

I have setted up the scope: "https://myapp.com/" and the start_url: '/pro in the pwa manifest settings at nuxt.config.ts. Althougt this settings when the PWA is installed still shows / as the main page. Is there something I'm doing wrong or there is some error in the module.

NOTE: In the /pro page I have a middleware that redirects to /auth if no user is detected. Also, in the /auth page I have a middleware that if a user is detected the app wil navigateTo /pro.

Also, is there a way to exclude some routes to the pwa? I would like to exclude the /[username] route from the intalled pwa, leaving only the /auth and the /pro routes.

Thanks

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