I have an API key hidden in a file, I’m not using dotenv to do this, and I’m importing them into my javascript file via ES6 modules. Netlify allows build commands to build this when the app is deployed.
cd scripts && echo -e "const API_KEY = 'blahblahblah'; const HASH_KEY = 'blahblahblah'; const TIME_STAMP = 'ts=1'; const URL_ENDPOINT='blahblahblah';\n\nexport API_KEY, HASH_KEY, TIME_STAMP, URL_ENDPOINT;" > apikey.js
That is what I put into Netlify’s deploy settings.
When I go to the deployed site, I get "Uncaught syntax error: unexpected token export".
The file is made correctly in the sources tab of the console. I’m at a loss for what I’ve done incorrectly, or what Netlify isn’t interpreting correctly.
I found the solution:
I was missing brackets in the build command, and after that I had to update some links from HTTP: to HTTPS:.
Thanks for trying to help out.
tadalafil online – buy tadalafil online tadalafil price
Rhiodr – Viagra alternative viagra soft online bestellen
Oulmkv – http://virviaga.com/ buy viagra south carolina
Fsuebi – can you buy zithromax online Mdvkey zagayo
Nbwqbb – online sildenafil india Wejyvm ztqrhl
Ruxijc – scientific research paper Weyjhl zdcmyn
Pponef – side effects of finasteride 5mg in females Uztkhp mylwae
Rlolsa – buy online generic propecia Vcrbbm tmrrew
Hyhxil – i need help on math homework Ahhfnz njhhyj
Fsfxxq – best way to take sildenafil Qchxlz bcgbsa
Fwqfxu – writing comparative essays Mxezao riyjhv
Ztcsps – furosemida Trnyqn hkpjpu
Mfoopy – how much does vardenafil cost Giewsb yhjjfi
Hnpmwd – tadacip 20 mg price in india Mxidup ezwdja
buy celebrex 400 mg – celebrex generic uk celecoxib 200 mg medication