Logo
Explore Help
Register Sign In
apksel-dev/pos-dashboard
3
0
Fork 0
You've already forked pos-dashboard
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
pos-dashboard/src/environment.jsx

6 lines
198 B
React
Raw Normal View History

Fix image paths: Change from /react/templateassets/ to /react/assets/ - Update package.json homepage from /react/template/ to /react/ - Update environment.jsx base_path to /react/ with proper fallback - Enhance ImageWithBasePath component to handle path concatenation correctly - Ensure proper slash handling between base_path and image src paths
2025-05-25 01:02:24 +07:00
// For development environment
Fix ESLint configuration and parsing errors - Fix .eslintrc.json format (remove comments and invalid JSON syntax) - Simplify environment.jsx to fix parsing error - Add proper ESLint rules for React project - Enable react-hooks plugin and configure settings
2025-05-25 02:15:41 +07:00
export const base_path = process.env.PUBLIC_URL || "/";
Fix image paths: Change from /react/templateassets/ to /react/assets/ - Update package.json homepage from /react/template/ to /react/ - Update environment.jsx base_path to /react/ with proper fallback - Enhance ImageWithBasePath component to handle path concatenation correctly - Ensure proper slash handling between base_path and image src paths
2025-05-25 01:02:24 +07:00
// For production with a subdirectory (uncomment and modify as needed)
// export const base_path = "/react/";
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.4 Page: 77ms Template: 3ms
English
English
Licenses API