mirror of
https://github.com/filecoin-project/slate.git
synced 2024-12-24 01:23:08 +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) => {
|
||||
const query = await DB.select("*").from("slates").whereIn("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",
|
||||
"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",
|
||||
|
||||
//NOTE(tara): slates in prod
|
||||
"d2861ac4-fc41-4c07-8f21-d0bf06be364c",
|
||||
|
22
server.js
22
server.js
@ -240,15 +240,21 @@ app.prepare().then(async () => {
|
||||
publicOnly: true,
|
||||
});
|
||||
|
||||
const 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;
|
||||
|
||||
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
|
||||
"d2861ac4-fc41-4c07-8f21-d0bf06be364c",
|
||||
"9c2c458c-d92a-4e81-a4b6-bf6ab4607470",
|
||||
|
Loading…
Reference in New Issue
Block a user