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
6 changes: 5 additions & 1 deletion .env.local.sample
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,12 @@ CONTENTSTACK_API_HOST=
CONTENTSTACK_APP_HOST=
CONTENTSTACK_LIVE_PREVIEW=true

#site-map
NEXT_PUBLIC_HOSTED_URL=http://localhost:3000
# Requires host url for sitemap. Localhost:3000 is set as default value

# For enabling live editing tags for this project set NEXT_PUBLIC_CONTENTSTACK_LIVE_PREVIEW=true by default it is set to false
# For NA region add CONTENTSTACK_APP_HOST=app.contentstack.com
# For EU region add CONTENTSTACK_APP_HOST=eu-app.contentstack.com
# For setting region add CONTENTSTACK_REGION=(Optional for US region) Eg- eu
# For setting custom host add CONTENTSTACK_API_HOST=for(NA: api.contentstack.io, EU: eu-api.contentstack.com)
# For setting custom host add CONTENTSTACK_API_HOST=for(NA: api.contentstack.io, EU: eu-api.contentstack.com)
46 changes: 0 additions & 46 deletions .eslintrc.js

This file was deleted.

10 changes: 10 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"extends": "next/core-web-vitals",
"rules": {
"@next/next/no-page-custom-font":"off",
"@next/next/no-sync-scripts":"off",
"@next/next/no-img-element":"off",
"react-hooks/exhaustive-deps":"off",
"import/no-anonymous-default-export":"off"
}
}
7 changes: 7 additions & 0 deletions helper/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@ export const getFooterRes = async () => {
return response[0][0];
};

export const getAllEntries =async () =>{
const response = await Stack.getEntry({
contentTypeUid:'page'
})
return response[0]
}

export const getHomeRes = async (entryUrl) => {
const response = await Stack.getEntryByUrl({
contentTypeUid: 'page',
Expand Down
Loading