Skip to content

Mise à jour de routing.md#34

Merged
MachinisteWeb merged 2 commits intoworkingfrom
update-routing
Feb 6, 2018
Merged

Mise à jour de routing.md#34
MachinisteWeb merged 2 commits intoworkingfrom
update-routing

Conversation

@MachinisteWeb
Copy link
Copy Markdown
Member

Hi tout le monde ! Besoin de quelques relectures sur cette PR !

Signed-off-by: MachinisteWeb <bruno.lesieur@gmail.com>
### Alternative pour application monopage

You can enable SPA fallbacks for dynamic routes too. Nuxt.js will output an extra file that is the same as the index.html that would be used in `mode: 'spa'`. Most static hosting services can be configured to to use the SPA template if no file matches. It won't include the `head` info or any HTML, but it will still resolve and load the data from the API.
Vous pouvez activer l'alternative pour application monopage pour les routes dynamiques aussi. Nuxt.js va générer un fichier supplémentaire identique à `index.html` qui pourra être utilisé en `mode: 'spa'`. La plupard des services d'hébergement peuvent être configurés pour utiliser le template d'application monopage si aucun fichier ne concorde. Les informations de `head` ou HTML ne seront pas inclus mais les données seront toujours résolues et chargées depuis l'API.
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • "La plupart"

Signed-off-by: MachinisteWeb <bruno.lesieur@gmail.com>
@MachinisteWeb
Copy link
Copy Markdown
Member Author

Merci @rspt !

@MachinisteWeb MachinisteWeb merged commit 4742e79 into working Feb 6, 2018
@MachinisteWeb MachinisteWeb deleted the update-routing branch February 6, 2018 10:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants