next-routes
next-routes copied to clipboard
Failed to decode downloaded font
Not able to serve fonts folder from public directory
Below is my server.js file
// server.js
const next = require('next');
const routes = require('./routes');
const app = next({dev: process.env.NODE_ENV !== 'production'});
const handler = routes.getRequestHandler(app);
// With express
const express = require('express');
const path = require('path');
app.prepare().then(() => {
express().use(handler).listen(8001);
});
// // Without express
// const {createServer} = require('http')
// app.prepare().then(() => {
// createServer(handler).listen(3000)
// })