diff --git a/nginx.conf b/nginx.conf index 27125df..2a271fa 100644 --- a/nginx.conf +++ b/nginx.conf @@ -97,6 +97,21 @@ http { aio threads; try_files $uri $uri/index.html =404; } + location ~ ^/abi/encoder/.* { + error_page 404 /404.html; + } + location ~ ^/abi/decoder/.* { + error_page 404 /404.html; + } + location ~ ^/hash-function/keccak256/.* { + error_page 404 /404.html; + } + location ~ ^/hash-function/sha256/.* { + error_page 404 /404.html; + } + location ~ ^/hash-function/ripemd160/.* { + error_page 404 /404.html; + } } } diff --git a/nuxt.config.ts b/nuxt.config.ts index 22d1623..0584710 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -153,6 +153,13 @@ export default defineNuxtConfig({ preset: 'node-server', prerender: { failOnError: false, + routes: [ + '/abi/encoder/', + '/abi/decoder/', + '/hash-function/keccak256', + '/hash-function/sha256', + '/hash-function/ripemd160', + ], }, }, })