Skip to content

Commit

Permalink
Fix vercel route mappings
Browse files Browse the repository at this point in the history
  • Loading branch information
Lakshan-Madushanka committed Dec 9, 2024
1 parent 115fe1e commit c4a7e96
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 25 deletions.
2 changes: 0 additions & 2 deletions api/index.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
<?php

declare(strict_types=1);

require __DIR__."/../public/index.php";
38 changes: 15 additions & 23 deletions vercel.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,41 +2,33 @@
"version": 2,
"framework": null,
"functions": {
"api/index.php": { "runtime": "[email protected].2" }
"api/index.php": { "runtime": "[email protected].0" }
},
"routes": [
{
"src": "/build/(.*)",
"dest": "/public/build/assets/"
},
{
"src": "/favicon.ico",
"dest": "/public/favicon.ico"
},
{
"src": "/images/(.*)",
"dest": "/public/images/"
},
{
"src": "/(.*)",
"dest": "/api/index.php"
}
{ "src": "/build/(.*)", "dest": "/public/build/" },
{ "src": "/(.*)", "dest": "/api/index.php" }
],
"public": true,
"buildCommand": "vite build",
"outputDirectory": "public",
"env": {
"APP_ENV": "production",
"APP_DEBUG": "true",
"APP_URL": "https://movieshark.vercel.app",
"ASSET_URL": "https://movieshark.vercel.app",

"APP_DEBUG": "false",
"APP_URL": "https://yourproductionurl.com",
"APP_KEY": "base64:TGaVaXwhWgjn9akhE4SCSIjGG/cQqvICUQ+PgLA3Bs0=",
"APP_CONFIG_CACHE": "/tmp/config.php",
"APP_EVENTS_CACHE": "/tmp/events.php",
"APP_PACKAGES_CACHE": "/tmp/packages.php",
"APP_ROUTES_CACHE": "/tmp/routes.php",
"APP_SERVICES_CACHE": "/tmp/services.php",
"VIEW_COMPILED_PATH": "/tmp",

"CACHE_DRIVER": "array",
"LOG_CHANNEL": "stderr",
"SESSION_DRIVER": "cookie"
"SESSION_DRIVER": "cookie",
"DB_CONNECTION": "mysql",
"DB_HOST": "4gg.h.filess.io",
"DB_PORT": "3306",
"DB_DATABASE": "db2024_stormtorn",
"DB_USERNAME": "db2024_stormtorn"
}
}

0 comments on commit c4a7e96

Please sign in to comment.