-
Notifications
You must be signed in to change notification settings - Fork 299
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
23 changed files
with
38 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,7 +54,7 @@ Second file `vercel.json` is pure gold here. Setup your project with configurati | |
{ | ||
"functions": { | ||
"api/*.php": { | ||
"runtime": "[email protected].2" | ||
"runtime": "[email protected].3" | ||
} | ||
} | ||
} | ||
|
@@ -90,7 +90,7 @@ Are you ready to deploy your first PHP project to Vercel? Click & Go! | |
## 💯 Versions | ||
|
||
- `[email protected].2` - Node autodetect / PHP 8.3.x (https://example-php-8-3.vercel.app) | ||
- `[email protected].3` - Node autodetect / PHP 8.3.x (https://example-php-8-3.vercel.app) | ||
- `[email protected]` - Node autodetect / PHP 8.2.x (https://example-php-8-2.vercel.app) | ||
- `[email protected]` - Node autodetect / PHP 8.1.x (https://example-php-8-1.vercel.app) | ||
- `[email protected]` - Node autodetect / PHP 8.0.x (https://example-php-8-0.vercel.app) | ||
|
@@ -107,7 +107,7 @@ If you need to route everything to index, use `routes` property. | |
{ | ||
"functions": { | ||
"api/*.php": { | ||
"runtime": "[email protected].2" | ||
"runtime": "[email protected].3" | ||
} | ||
}, | ||
"routes": [ | ||
|
@@ -182,19 +182,19 @@ project | |
{ | ||
"functions": { | ||
"api/*.php": { | ||
"runtime": "[email protected].2" | ||
"runtime": "[email protected].3" | ||
}, | ||
// Can be list also directly | ||
"api/index.php": { | ||
"runtime": "[email protected].2" | ||
"runtime": "[email protected].3" | ||
}, | ||
"api/users.php": { | ||
"runtime": "[email protected].2" | ||
"runtime": "[email protected].3" | ||
}, | ||
"api/books.php": { | ||
"runtime": "[email protected].2" | ||
"runtime": "[email protected].3" | ||
} | ||
} | ||
} | ||
|
@@ -209,7 +209,7 @@ project | |
{ | ||
"functions": { | ||
"api/index.php": { | ||
"runtime": "[email protected].2" | ||
"runtime": "[email protected].3" | ||
} | ||
}, | ||
"routes": [ | ||
|
@@ -229,7 +229,7 @@ Additional function properties are `memory`, `maxDuration`. Learn more about [fu | |
{ | ||
"functions": { | ||
"api/*.php": { | ||
"runtime": "[email protected].2", | ||
"runtime": "[email protected].3", | ||
"memory": 3008, | ||
"maxDuration": 60 | ||
} | ||
|
@@ -256,7 +256,7 @@ project | |
{ | ||
"functions": { | ||
"api/*.php": { | ||
"runtime": "[email protected].2" | ||
"runtime": "[email protected].3" | ||
} | ||
} | ||
} | ||
|
@@ -295,7 +295,7 @@ project | |
{ | ||
"functions": { | ||
"api/*.php": { | ||
"runtime": "[email protected].2" | ||
"runtime": "[email protected].3" | ||
} | ||
} | ||
} | ||
|
@@ -320,7 +320,7 @@ Runtimes support excluding some files or folders, [take a look at doc](https://v | |
{ | ||
"functions": { | ||
"api/**/*.php": { | ||
"runtime": "[email protected].2", | ||
"runtime": "[email protected].3", | ||
"excludeFiles": "{foo/**,bar/config/*.yaml}", | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"functions": { | ||
"api/**/*.php": { | ||
"runtime": "[email protected].2" | ||
"runtime": "[email protected].3" | ||
} | ||
}, | ||
"routes": [ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"functions": { | ||
"api/*.php": { | ||
"runtime": "[email protected].2" | ||
"runtime": "[email protected].3" | ||
} | ||
}, | ||
"routes": [ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"version": 2, | ||
"builds": [ | ||
{ "src": "index.php", "use": "[email protected].2" }, | ||
{ "src": "subdirectory/index.php", "use": "[email protected].2" } | ||
{ "src": "index.php", "use": "[email protected].3" }, | ||
{ "src": "subdirectory/index.php", "use": "[email protected].3" } | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"version": 2, | ||
"builds": [{ "src": "index.php", "use": "[email protected].2" }] | ||
"builds": [{ "src": "index.php", "use": "[email protected].3" }] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"version": 2, | ||
"builds": [{ "src": "env/index.php", "use": "[email protected].2" }] | ||
"builds": [{ "src": "env/index.php", "use": "[email protected].3" }] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
"builds": [ | ||
{ | ||
"src": "index.php", | ||
"use": "[email protected].2", | ||
"use": "[email protected].3", | ||
"config": { "includeFiles": ["included*.php"] } | ||
} | ||
] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"version": 2, | ||
"builds": [{ "src": "index.php", "use": "[email protected].2" }] | ||
"builds": [{ "src": "index.php", "use": "[email protected].3" }] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"version": 2, | ||
"builds": [{ "src": "index.php", "use": "[email protected].2" }] | ||
"builds": [{ "src": "index.php", "use": "[email protected].3" }] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"version": 2, | ||
"builds": [{ "src": "index.php", "use": "[email protected].2" }] | ||
"builds": [{ "src": "index.php", "use": "[email protected].3" }] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"version": 2, | ||
"builds": [{ "src": "index.php", "use": "[email protected].2" }] | ||
"builds": [{ "src": "index.php", "use": "[email protected].3" }] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"version": 2, | ||
"builds": [{ "src": "index.php", "use": "[email protected].2" }], | ||
"builds": [{ "src": "index.php", "use": "[email protected].3" }], | ||
"routes": [{ "src": "/(.*)", "dest": "index.php" }] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"version": 2, | ||
"builds": [{ "src": "index.php", "use": "[email protected].2" }], | ||
"builds": [{ "src": "index.php", "use": "[email protected].3" }], | ||
"build": { | ||
"env": { | ||
"NOW_BUILDER_DEBUG": "1" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"version": 2, | ||
"builds": [{ "src": "index.php", "use": "[email protected].2" }], | ||
"builds": [{ "src": "index.php", "use": "[email protected].3" }], | ||
"build": { | ||
"env": { | ||
"COMPOSER": "composer-test.json" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"functions": { | ||
"api/index.php": { | ||
"runtime": "[email protected].2" | ||
"runtime": "[email protected].3" | ||
} | ||
}, | ||
"routes": [ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"functions": { | ||
"api/index.php": { | ||
"runtime": "[email protected].2" | ||
"runtime": "[email protected].3" | ||
} | ||
}, | ||
"routes": [ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"functions": { | ||
"api/**/*.php": { | ||
"runtime": "[email protected].2" | ||
"runtime": "[email protected].3" | ||
} | ||
}, | ||
"routes": [ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"functions": { | ||
"api/*.php": { | ||
"runtime": "[email protected].2" | ||
"runtime": "[email protected].3" | ||
} | ||
}, | ||
"routes": [ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"functions": { | ||
"api/**/*.php": { | ||
"runtime": "[email protected].2" | ||
"runtime": "[email protected].3" | ||
} | ||
}, | ||
"build": { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"functions": { | ||
"api/**/*.php": { | ||
"runtime": "[email protected].2", | ||
"runtime": "[email protected].3", | ||
"excludeFiles": "foo/**" | ||
} | ||
}, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"functions": { | ||
"api/*.php": { | ||
"runtime": "[email protected].2" | ||
"runtime": "[email protected].3" | ||
} | ||
}, | ||
"env": { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"functions": { | ||
"api/*.php": { | ||
"runtime": "[email protected].2" | ||
"runtime": "[email protected].3" | ||
} | ||
}, | ||
"routes": [ | ||
|