Skip to content

Instantly share code, notes, and snippets.

@DuncanFaulkner
Created April 5, 2021 13:41
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save DuncanFaulkner/c2197d6e771e422118885aeb5d9ac496 to your computer and use it in GitHub Desktop.
ssr-8
// Exclude admin pages from SSR
app.get('/admin(/**)?', (req, res) => {
res.sendFile(join(DIST_FOLDER, 'index.html'));
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment