diff --git a/.eslintrc b/.eslintrc index 5d7026f..c006d72 100644 --- a/.eslintrc +++ b/.eslintrc @@ -1,5 +1,4 @@ { - "parser": "@babel/eslint-parser", "extends": ["eslint:recommended", "prettier"], "env": { "es6": true, "browser": true, "node": true, "jest": true }, "settings": { diff --git a/pages/api/name.ts b/pages/api/name.ts index 89bec39..4ada72f 100644 --- a/pages/api/name.ts +++ b/pages/api/name.ts @@ -18,7 +18,7 @@ export default async function nameApi( try { const accountId = String(request.query.accountId) const name = await getEnsName(accountId) - response.setHeader('Cache-Control', 's-maxage=86400') + response.setHeader('Cache-Control', 'max-age=0, s-maxage=86400') response.status(200).send(name) } catch (error) { response.status(500).send(`${error}`) diff --git a/tsconfig.json b/tsconfig.json index 01bf528..3805717 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -6,7 +6,14 @@ "noEmit": true, "module": "esnext", "moduleResolution": "node", - "isolatedModules": true + "isolatedModules": true, + "allowJs": true, + "skipLibCheck": true, + "forceConsistentCasingInFileNames": true, + "incremental": true, + "esModuleInterop": true, + "resolveJsonModule": true, + "jsx": "preserve" }, "exclude": ["node_modules"], "include": ["**/*.ts", "**/*.tsx"]