-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* docs(backend): 📝 update readme with .env random string generation instructions * feat(frontend): ✨ fetch example blog data from strapi * fix(ide): fix root package lock * feat: 🏷️ Setup Strapi type generation * chore(frontend): rename strapi types folder * docs: 📝 Describe type generation in docs * docs: update docs * docs: update docs * feat: ✨ Fetch and dispay blog posts from backend * fix(frontend): 💚 remove unused vars * build: 💚 wip fix cloudflare build deployment * style(frontend): run prettier * build(frontend): 💚 Try to fix cloudflare ssr pages * feat(backend): setup Strapi for Heroku deployment * build(backend): update required npm version to fix heroku build * build(backend): update node version in package.lock to fix heroku deploy * build: Setup environment variable for prod heroku and dev localhost * docs(backend): 📝 Add heroku documentation * refactor: remove console log * refactor: remove unnecessary export because edge runtime disables static generation * feat(frontend): ✨ Add Author image fetching * refactor(frontend): ♻️ Rename fetch functions to better imply what they do
- Loading branch information
Magnus Strømseng
authored and
GitHub
committed
Jan 26, 2024
1 parent
e6e98f9
commit bf4de0c
Showing
34 changed files
with
8,983 additions
and
46 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| node_modules |
Empty file.
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 |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| // path: ./config/env/production/database.js | ||
|
|
||
| const { parse } = require("pg-connection-string"); | ||
|
|
||
| module.exports = ({ env }) => { | ||
| const { host, port, database, user, password } = parse(env("DATABASE_URL")); | ||
|
|
||
| return { | ||
| connection: { | ||
| client: "postgres", | ||
| connection: { | ||
| host, | ||
| port, | ||
| database, | ||
| user, | ||
| password, | ||
| ssl: { rejectUnauthorized: false }, | ||
| }, | ||
| debug: false, | ||
| }, | ||
| }; | ||
| }; |
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 |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| // Path: ./config/env/production/server.js | ||
| // starting from Strapi v 4.6.1 server.js has to be the following | ||
|
|
||
| module.exports = ({ env }) => ({ | ||
| proxy: true, | ||
| host: "0.0.0.0", | ||
| port: process.env.PORT, | ||
| url: env("MY_HEROKU_URL"), | ||
| app: { | ||
| keys: env.array("APP_KEYS"), | ||
| }, | ||
| admin: { | ||
| auth: { | ||
| secret: env("ADMIN_JWT_SECRET"), | ||
| }, | ||
| }, | ||
| }); |
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
Oops, something went wrong.