Replies: 2 comments 2 replies
-
|
Bref does not prevent Laravel from loading that file. I'd suggest making sure the file is actually in the zip file. And if yes, investigating why Laravel isn't loading it. |
Beta Was this translation helpful? Give feedback.
-
|
Got it sorted out - but one issue retains: I have the APP_URL set to domain.com and this works in a regular container deployment. The generated URLs use that as base URL to generate/render links. However on serverless with bref laravel suddenly generates URLs like this: $lambdaFunctionUrl/index.php/xxx It seems to be using the HTTP host header / or sth else. Is bref doing some overrides here ? My setup is route53 >> CloudFront >> lambda function url origin |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
what is the correct way to get .env settings loaded into laravel with bref ?
I have a .env file that gets bundled with the lambda ZIP. But it seems like its content does not get loaded by lambda/bref runtime.
So I tried to add them to the environment config variable of the deployed lambda itself - but that doesn't work since it exceeds the 4KB size limit.
What's the right approach here ? (I'm using a custom deployed lambda and not the serverless framework)
Beta Was this translation helpful? Give feedback.
All reactions