WordPress database error: [Can't create/write to file '/tmp/#sql-temptable-4db-160837-52.MAI' (Errcode: 28 "No space left on device")]SELECT p.* FROM wp_mdb_forum_posts AS p LEFT JOIN wp_mdb_forum_posts AS q ON( q.Id = p.ParentId AND p.Id = q.AcceptedAnswerId ) WHERE p.PostTypeId = 2 AND p.ParentId = 103515 GROUP BY p.Id ORDER BY CASE WHEN q.Id IS NOT NULL THEN 1 ELSE 0 END DESC, p.UpvoteCount DESC, p.CreationDate ASC
Topic: Using .env / VUE_APP environment variables
Mike Barlow
asked 6 years ago
Trying to make use of environment variables in my MDBootstrap app.
I've read that I should be able to add environment variables in my .env
file in the root of my project (I've put it in the root
, in the src/assets
, config
) and that any variable starting with VUE_APP
should be available in vue by using process.env.VUE_APPXXX
with no success.
How does MDBootstrap vue work with environment variables?
Thanks
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- User: Free
- Premium support: No
- Technology: MDB Vue
- MDB Version: 5.8.3
- Device: Any
- Browser: Any
- OS: windows
- Provided sample code: No
- Provided link: No
Mike Barlow commented 6 years ago
Ok, just found one solution (is this the prefered one?) In my
config\dev.env.js
file I added:VUE_APP_API_BASE: '"http://localhost:8084/"'
and that appears to work