mirror of
https://github.com/filecoin-project/slate.git
synced 2024-12-24 17:44:50 +03:00
check env to see if in prod
This commit is contained in:
parent
14bf4d3185
commit
67408b94ac
@ -6,12 +6,12 @@ export default async ({ id }) => {
|
|||||||
queryFn: async (DB) => {
|
queryFn: async (DB) => {
|
||||||
const query = await DB.select("*").from("slates").whereIn("id", [
|
const query = await DB.select("*").from("slates").whereIn("id", [
|
||||||
//NOTE(tara): slates in localhost for testing
|
//NOTE(tara): slates in localhost for testing
|
||||||
// "857ad84d-7eff-4861-a988-65c84b62fc23",
|
"857ad84d-7eff-4861-a988-65c84b62fc23",
|
||||||
// "81fa0b39-0e96-4c7f-8587-38468bb67cb3",
|
"81fa0b39-0e96-4c7f-8587-38468bb67cb3",
|
||||||
// "c4e8dad7-4ba0-4f25-a92a-c73ef5522d29",
|
"c4e8dad7-4ba0-4f25-a92a-c73ef5522d29",
|
||||||
// "df05cb1f-2ecf-4872-b111-c4b8493d08f8",
|
"df05cb1f-2ecf-4872-b111-c4b8493d08f8",
|
||||||
// "435035e6-dee4-4bbf-9521-64c219a527e7",
|
"435035e6-dee4-4bbf-9521-64c219a527e7",
|
||||||
// "ac907aa3-2fb2-46fd-8eba-ec8ceb87b5eb",
|
"ac907aa3-2fb2-46fd-8eba-ec8ceb87b5eb",
|
||||||
|
|
||||||
//NOTE(tara): slates in prod
|
//NOTE(tara): slates in prod
|
||||||
"d2861ac4-fc41-4c07-8f21-d0bf06be364c",
|
"d2861ac4-fc41-4c07-8f21-d0bf06be364c",
|
||||||
|
22
server.js
22
server.js
@ -240,15 +240,21 @@ app.prepare().then(async () => {
|
|||||||
publicOnly: true,
|
publicOnly: true,
|
||||||
});
|
});
|
||||||
|
|
||||||
const exploreSlates = await Data.getSlatesByIds("id", [
|
const exploreSlates;
|
||||||
//NOTE(tara): slates in localhost for testing
|
|
||||||
// "857ad84d-7eff-4861-a988-65c84b62fc23",
|
|
||||||
// "81fa0b39-0e96-4c7f-8587-38468bb67cb3",
|
|
||||||
// "c4e8dad7-4ba0-4f25-a92a-c73ef5522d29",
|
|
||||||
// "df05cb1f-2ecf-4872-b111-c4b8493d08f8",
|
|
||||||
// "435035e6-dee4-4bbf-9521-64c219a527e7",
|
|
||||||
// "ac907aa3-2fb2-46fd-8eba-ec8ceb87b5eb",
|
|
||||||
|
|
||||||
|
if (process.env.NODE_ENV !== "production") {
|
||||||
|
exploreSlates = await Data.getSlatesByIds("id", [
|
||||||
|
//NOTE(tara): slates in localhost for testing
|
||||||
|
"857ad84d-7eff-4861-a988-65c84b62fc23",
|
||||||
|
"81fa0b39-0e96-4c7f-8587-38468bb67cb3",
|
||||||
|
"c4e8dad7-4ba0-4f25-a92a-c73ef5522d29",
|
||||||
|
"df05cb1f-2ecf-4872-b111-c4b8493d08f8",
|
||||||
|
"435035e6-dee4-4bbf-9521-64c219a527e7",
|
||||||
|
"ac907aa3-2fb2-46fd-8eba-ec8ceb87b5eb",
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
|
||||||
|
const exploreSlates = await Data.getSlatesByIds("id", [
|
||||||
//NOTE(tara): slates in prod
|
//NOTE(tara): slates in prod
|
||||||
"d2861ac4-fc41-4c07-8f21-d0bf06be364c",
|
"d2861ac4-fc41-4c07-8f21-d0bf06be364c",
|
||||||
"9c2c458c-d92a-4e81-a4b6-bf6ab4607470",
|
"9c2c458c-d92a-4e81-a4b6-bf6ab4607470",
|
||||||
|
Loading…
Reference in New Issue
Block a user