forked from render-examples/strapi-sqlite
-
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.
Upgrade to Strapi v4 (render-examples#16)
- Loading branch information
Showing
20 changed files
with
4,528 additions
and
4,412 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 |
---|---|---|
@@ -1,2 +1,5 @@ | ||
HOST=0.0.0.0 | ||
PORT=1337 | ||
APP_KEYS=tempkey | ||
JWT_SECRET=tempsecret | ||
ADMIN_JWT_SECRET=tempsecret |
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,5 @@ | ||
module.exports = ({ env }) => ({ | ||
auth: { | ||
secret: env('ADMIN_JWT_SECRET', 'b4dbad35-6caa-4f84-be56-90d0d3bc2fdf'), | ||
}, | ||
}); |
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,15 +1,11 @@ | ||
const path = require('path'); | ||
|
||
module.exports = ({ env }) => ({ | ||
defaultConnection: 'default', | ||
connections: { | ||
default: { | ||
connector: 'bookshelf', | ||
settings: { | ||
client: 'sqlite', | ||
filename: env('DATABASE_FILENAME', '.tmp/data.db'), | ||
}, | ||
options: { | ||
useNullAsDefault: true, | ||
}, | ||
connection: { | ||
client: 'sqlite', | ||
connection: { | ||
filename: env('DATABASE_FILENAME', path.join(__dirname, '..', '.tmp/data.db')), | ||
}, | ||
useNullAsDefault: true, | ||
}, | ||
}); |
This file was deleted.
Oops, something went wrong.
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,9 +1,3 @@ | ||
module.exports = ({ env }) => ({ | ||
host: "0.0.0.0", | ||
url: env("RENDER_EXTERNAL_URL"), | ||
admin: { | ||
auth: { | ||
secret: env("ADMIN_JWT_SECRET"), | ||
}, | ||
}, | ||
}); |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,12 @@ | ||
module.exports = [ | ||
"strapi::errors", | ||
"strapi::security", | ||
"strapi::cors", | ||
"strapi::poweredBy", | ||
"strapi::logger", | ||
"strapi::query", | ||
"strapi::body", | ||
'strapi::session', | ||
"strapi::favicon", | ||
"strapi::public", | ||
]; |
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,9 +1,7 @@ | ||
module.exports = ({ env }) => ({ | ||
host: env('HOST', '0.0.0.0'), | ||
port: env.int('PORT', 1337), | ||
admin: { | ||
auth: { | ||
secret: env('ADMIN_JWT_SECRET', '02c8ae6aa94de991b9df3d7be1b2dd90'), | ||
}, | ||
app: { | ||
keys: env.array('APP_KEYS') | ||
}, | ||
}); |
This file was deleted.
Oops, something went wrong.
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
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,35 @@ | ||
export default { | ||
config: { | ||
locales: [ | ||
// 'ar', | ||
// 'fr', | ||
// 'cs', | ||
// 'de', | ||
// 'dk', | ||
// 'es', | ||
// 'he', | ||
// 'id', | ||
// 'it', | ||
// 'ja', | ||
// 'ko', | ||
// 'ms', | ||
// 'nl', | ||
// 'no', | ||
// 'pl', | ||
// 'pt-BR', | ||
// 'pt', | ||
// 'ru', | ||
// 'sk', | ||
// 'sv', | ||
// 'th', | ||
// 'tr', | ||
// 'uk', | ||
// 'vi', | ||
// 'zh-Hans', | ||
// 'zh', | ||
], | ||
}, | ||
bootstrap(app) { | ||
console.log(app); | ||
}, | ||
}; |
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,9 @@ | ||
'use strict'; | ||
|
||
/* eslint-disable no-unused-vars */ | ||
module.exports = (config, webpack) => { | ||
// Note: we provide webpack above so you should not `require` it | ||
// Perform customizations to webpack config | ||
// Important: return the modified config | ||
return config; | ||
}; |
File renamed without changes.
File renamed without changes.
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,3 @@ | ||
module.exports = { | ||
jwtSecret: process.env.JWT_SECRET || '29acc8bd-955a-48d8-9475-4d52c7a97462' | ||
}; |
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,20 @@ | ||
'use strict'; | ||
|
||
module.exports = { | ||
/** | ||
* An asynchronous register function that runs before | ||
* your application is initialized. | ||
* | ||
* This gives you an opportunity to extend code. | ||
*/ | ||
register(/*{ strapi }*/) {}, | ||
|
||
/** | ||
* An asynchronous bootstrap function that runs before | ||
* your application gets started. | ||
* | ||
* This gives you an opportunity to set up your data model, | ||
* run jobs, or perform some special logic. | ||
*/ | ||
bootstrap(/*{ strapi }*/) {}, | ||
}; |
Oops, something went wrong.