I tried to run .ejs file on netlify
and I imported files from github
Here’s my github link - https://github.com/mineppl12/any-duck
as you see, in my build.js file,
ejs2html({
path: ${__dirname}/views/room.ejs
,
outPath: ${__dirname}/public/index.html
});
However, if I run this,
<script>
const ROOM_ID = "<%= roomId %>";
</script>
roomId is not defined
If i run this in
nodemon, nodemon server.js
there’s no problem at all.
Any idea to resolve this?