Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to configure DocumentRoot and .env for deployment to production? #355

Open
jaturongL opened this issue Apr 18, 2023 · 0 comments
Open

Comments

@jaturongL
Copy link

jaturongL commented Apr 18, 2023

I configure DocumentRoot as

NameVirtualHost laravue.local:80
<VirtualHost laravue.local:80>
    DocumentRoot C:\Apache24\htdocs\laravue\public
    ServerName laravue.local
    ServerAlias laravue.local

and I configure .env as

SANCTUM_STATEFUL_DOMAINS=localhost,127.0.0.1,localhost:8000,127.0.0.1:8000

BASE_API=/api
LARAVUE_USE_ESLINT=true
LARAVUE_PATH=
MIX_BASE_API="${BASE_API}"
MIX_LARAVUE_PATH="${LARAVUE_PATH}"

I run project for production: npm run production

I open the project in browser with URL http://laravue.local then show login page.
But when I login that shows error 404 GET http://laravue.local/api/sanctum/csrf-cookie 404 (Not Found)

@tuandm
How to configure DocumentRoot and .env for deployment to production?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant