next-routes icon indicating copy to clipboard operation
next-routes copied to clipboard

Failed to decode downloaded font

Open murtazamzk opened this issue 3 years ago • 0 comments

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)
// })

murtazamzk avatar Jul 01 '20 03:07 murtazamzk