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 = {
root: true,
env: { browser: true, es2020: true },
env: { browser: true, es2020: true, node: true },
extends: [
'eslint:recommended',
'plugin:react/recommended',
'plugin:react/jsx-runtime',
'plugin:react-hooks/recommended',
"eslint:recommended",
"plugin:react/recommended",
"plugin:react/jsx-runtime",
"plugin:react-hooks/recommended",
],
ignorePatterns: ['dist', '.eslintrc.cjs'],
parserOptions: { ecmaVersion: 'latest', sourceType: 'module' },
settings: { react: { version: '18.2' } },
plugins: ['react-refresh'],
ignorePatterns: ["dist", ".eslintrc.cjs"],
parserOptions: { ecmaVersion: "latest", sourceType: "module" },
settings: { react: { version: "18.2" } },
plugins: ["react-refresh"],
rules: {
'react-refresh/only-export-components': [
'warn',
{ allowConstantExport: true },
],
"react-refresh/only-export-components": ["warn", { allowConstantExport: true }],
},
}
};

View File

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