featï: support embed build\

This commit is contained in:
engigu
2024-01-02 11:50:54 +08:00
parent 54b6f0b977
commit 139aece563
9 changed files with 60 additions and 70 deletions
+10
View File
@@ -0,0 +1,10 @@
// config.js
const isProduction = process.env.NODE_ENV === 'prod';
const config = {
apiUrl: isProduction ? '' : 'http://localhost:8000',
};
export default config;