-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Routing problem #46
Comments
Github Pages do not support SPA. |
I have the same error, but I deployed on Netlify. My configuration: export default {
title: 'Docz',
description: 'This is my awesome documentation',
menu: [
'Bem vindo',
'Princípios de design',
{
name: 'Estilos',
menu: [
'Cores',
'Tipografias',
],
},
{
name: 'Componentes',
menu: [
'Botão',
],
},
'Marketing',
'Produto',
'Recursos',
'FAQ',
],
src: './src',
public: './src/public',
plugins: [],
theme: 'docz-theme-default',
themeConfig: {
logo: {
src: '/public/imgs/logo.svg',
width: '100%',
},
colors: {
primary: '#4967a9',
},
},
htmlContext: {
favicon: '/public/favicon.png',
},
} What's the solution? |
I added a final step in order to access all urls of the deployed site on Netlify. It is required as Docz is a single page app. This adresses doczjs/docz#46.
@adrianoresende Deploying with Netlify, add this file at the root of your project. It should fix your issue: # COMMENT: This a rule for Single Page Applications
[[redirects]]
from = "/*"
to = "/"
status = 200 References: |
@tpucci Thanks! ;) |
Hey guys, if you want to support gh-pages still, there is a tiny workaround you can do: https://github.com/sumup/circuit-ui/pull/437/files#diff-eae600270579316beb8b8d9b9a5732d4R4 |
Bug Report
Describe the bug
Routes are active only for the current session. If someone shares the link to one of the pages in the documentation (or even reload the page), they will come across a 404 page.
To Reproduce
domain.com/section
Expected behavior
Access the shared page
The text was updated successfully, but these errors were encountered: