Removing webpack build step (#20405)
* removing webpack build step * keep copywebpackplugin and add fonts to assets/fonts * update marketing font path * update font path * update font * remove builtAssets * remove copying front end code with dist * move Inter fonts to /assets/fonts/inter * move copy-webpack-plugin back to deps Co-authored-by: Mike Surowiec <mikesurowiec@users.noreply.github.com>
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
import FailBot from '../lib/failbot.js'
|
||||
import loadSiteData from '../lib/site-data.js'
|
||||
import builtAssets from '../lib/built-asset-urls.js'
|
||||
import { nextApp } from './next.js'
|
||||
|
||||
function shouldLogException(error) {
|
||||
@@ -42,9 +41,8 @@ export default async function handleError(error, req, res, next) {
|
||||
// set req.context.site here so we can pass data/ui.yml text to the 500 layout
|
||||
if (!req.context) {
|
||||
const site = await loadSiteData()
|
||||
req.context = { site: site[req.language || 'en'].site, builtAssets }
|
||||
req.context = { site: site[req.language || 'en'].site }
|
||||
}
|
||||
|
||||
// display error on the page in development and staging, but not in production
|
||||
if (req.context && process.env.HEROKU_PRODUCTION_APP !== 'true') {
|
||||
req.context.error = error
|
||||
|
||||
Reference in New Issue
Block a user