Skip to content

Instantly share code, notes, and snippets.

@DuncanFaulkner

DuncanFaulkner/ssr-8.ts Secret

Created Apr 5, 2021
Embed
What would you like to do?
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