Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
status = 200
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand Down
4 changes: 2 additions & 2 deletions util/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ exports.validate = function(response) {
if (!hasSQL && !hasSqliteS3) {
let message = "<p>It appears that the required environment variables for the WordPress database aren't setup.</p>"
+ "<p>If you don't have a database solution selected yet, there are a few options.</p>"
+ "<p>Head over to the <a href='https://github.com/mitchmac/ServerlessWP?tab=readme-ov-file#3-update-the-environment-variables' target='_blank'>readme</a> to pick a data option and setup environment variables.</p>"
+ `<p>You'll need to populate the environment variables for your site at Vercel or Netlify (<a href="${dashboardLink}" target="_blank">dashboard</a>)</p>`
+ "<p>Head over to the <a href='https://github.com/mitchmac/ServerlessWP?tab=readme-ov-file#2-select-a-database-solution' target='_blank'>readme</a> to pick a data option and setup environment variables.</p>"
+ `<p>You'll need to populate the environment variables for your site in the Vercel or Netlify (<a href="${dashboardLink}" target="_blank">dashboard</a>).</p>`
+ '<p>Then <strong>remember to redeploy your site at Vercel or Netlify</strong> for the environment variables to be updated for the site.</p>';

return {
Expand Down