Update vercel include path

This commit is contained in:
sosokker 2023-11-22 22:51:42 +07:00
parent 84bd04126e
commit 8574635076
2 changed files with 12 additions and 15 deletions

View File

@ -1,20 +1,17 @@
module.exports = { module.exports = {
root: true, root: true,
env: { browser: true, es2020: true }, env: { browser: true, es2020: true, node: true },
extends: [ extends: [
'eslint:recommended', "eslint:recommended",
'plugin:react/recommended', "plugin:react/recommended",
'plugin:react/jsx-runtime', "plugin:react/jsx-runtime",
'plugin:react-hooks/recommended', "plugin:react-hooks/recommended",
], ],
ignorePatterns: ['dist', '.eslintrc.cjs'], ignorePatterns: ["dist", ".eslintrc.cjs"],
parserOptions: { ecmaVersion: 'latest', sourceType: 'module' }, parserOptions: { ecmaVersion: "latest", sourceType: "module" },
settings: { react: { version: '18.2' } }, settings: { react: { version: "18.2" } },
plugins: ['react-refresh'], plugins: ["react-refresh"],
rules: { rules: {
'react-refresh/only-export-components': [ "react-refresh/only-export-components": ["warn", { allowConstantExport: true }],
'warn',
{ allowConstantExport: true },
],
}, },
} };

View File

@ -9,6 +9,6 @@ export default defineConfig({
}, },
}, },
define: { define: {
__APP_ENV__: import.meta.env.VITE_VERCEL_ENV, __APP_ENV__: process.env.VITE_VERCEL_ENV,
}, },
}); });