From eaa59e431ddacd983d87d1ae50220d6edd7883c9 Mon Sep 17 00:00:00 2001 From: Mitch MacKenzie Date: Sun, 13 Apr 2025 14:11:14 -0300 Subject: [PATCH 1/2] Vercel flow updates --- readme.md | 2 +- util/install.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/readme.md b/readme.md index 66f864870..537fea577 100644 --- a/readme.md +++ b/readme.md @@ -11,7 +11,7 @@ Choose one of the following platforms to deploy your serverless WordPress site: | Vercel (recommended) | Netlify | Serverless Framework (Lambda) | |---|---|---| -| [![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fmitchmac%2Fserverlesswp&env=DATABASE,USERNAME,PASSWORD,HOST&envDescription=Database%20credentials%20from%20PlanetScale%20or%20other%20host&envLink=https%3A%2F%2Fgithub.com%2Fmitchmac%2FServerlessWP%23deploy-serverlesswp&project-name=serverlesswp&repository-name=serverlesswp) | [![Deploy to Netlify](https://www.netlify.com/img/deploy/button.svg)](https://app.netlify.com/start/deploy?repository=https://github.com/mitchmac/serverlesswp) | ```npm install && serverless deploy``` | +| [![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fmitchmac%2Fserverlesswp&project-name=serverlesswp&repository-name=serverlesswp) | [![Deploy to Netlify](https://www.netlify.com/img/deploy/button.svg)](https://app.netlify.com/start/deploy?repository=https://github.com/mitchmac/serverlesswp) | ```npm install && serverless deploy``` | | 🕑 60 second requests | 10 second requests | 30 second requests | |  âއ  automatic branch deploy config | manual branch config | do-it-yourself | | 🗲 [Fluid compute](https://vercel.com/fluid) | single concurrency | single concurrency | diff --git a/util/install.js b/util/install.js index cce6157f2..da01d0d57 100644 --- a/util/install.js +++ b/util/install.js @@ -23,8 +23,8 @@ exports.validate = function(response) { if (!hasSQL && !hasSqliteS3) { let message = "

It appears that the required environment variables for the WordPress database aren't setup.

" + "

If you don't have a database solution selected yet, there are a few options.

" - + "

Head over to the readme to pick a data option and setup environment variables.

" - + `

You'll need to populate the environment variables for your site at Vercel or Netlify (dashboard)

` + + "

Head over to the readme to pick a data option and setup environment variables.

" + + `

You'll need to populate the environment variables for your site in the Vercel or Netlify (dashboard).

` + '

Then remember to redeploy your site at Vercel or Netlify for the environment variables to be updated for the site.

'; return { From 1b3bf3b5a416232d79f3b2e93edf83ae5ee30a3a Mon Sep 17 00:00:00 2001 From: Mitch MacKenzie Date: Sun, 13 Apr 2025 14:12:30 -0300 Subject: [PATCH 2/2] Update netlify flow --- netlify.toml | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/netlify.toml b/netlify.toml index ad183437c..801889e63 100644 --- a/netlify.toml +++ b/netlify.toml @@ -4,9 +4,4 @@ [[redirects]] from = "/*" to = "/.netlify/functions/index/:splat" - status = 200 -[template.environment] - DATABASE = "MySQL database name here" - USERNAME = "MySQL database username here" - PASSWORD = "MySQL database password here" - HOST = "MySQL database host here" \ No newline at end of file + status = 200 \ No newline at end of file