404
This commit is contained in:
parent
1f88391c38
commit
6e9b668af9
2 changed files with 2 additions and 2 deletions
|
|
@ -118,7 +118,7 @@ gerar.then(() => {
|
||||||
// 404
|
// 404
|
||||||
fastify.setNotFoundHandler((request, reply) => {
|
fastify.setNotFoundHandler((request, reply) => {
|
||||||
const html404 = fs.readFileSync(
|
const html404 = fs.readFileSync(
|
||||||
estaticos("node_modules").html["404.html"],
|
path.join(process.cwd(), estaticos("relativo").html["404.html"]),
|
||||||
"utf8",
|
"utf8",
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "p-estaticos",
|
"name": "p-estaticos",
|
||||||
"version": "0.39.0",
|
"version": "0.40.0",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue