Struggling to pass a dynamic variable url in form action using this code:
<form action="${url}/auth/login_student" method="POST">
....</form>
UPDATE: Also within the script tag
<script>
export default {
data() {
return{
url: process.env.VUE_APP_URL
}
}
}
</script>
Attempting to access the URL from .env
file located two directories up from this current file, but running into the issue of process.env.VUE_APP_URL being undefined
This is how my .env
file is configured:
VUE_APP_URL=http://localhost:5000