Thank you for your efforts. Unfotunately problem still exists.
I just updated the project to the newest gatsby
and installed gatsby-adapter-netlify
, but problem persists:
Project’s Netlify name: sprightly-gingersnap-e7d049
Url: https://ramioda.lt
package.json file dependencies:
"scripts": {
"develop": "GATSBY_CONCURRENT_DOWNLOAD=5 gatsby develop",
"format": "prettier --write \"**/*.{js,jsx,json,md}\"",
"lint": "eslint . --ext .ts,.tsx",
"lint-fix": "eslint . --ext .ts,.tsx --fix",
"lint:style": "stylelint ./src/**/*.{ts,tsx,js,jsx}",
"lint:style-fix": "stylelint ./src/**/*.{ts,tsx,js,jsx} --fix",
"lint:all": "eslint . --ext .ts,.tsx && stylelint ./src/**/*.{ts,tsx,js,jsx}",
"start": "npm run develop",
"build": "gatsby build",
"serve": "gatsby serve",
"clean": "gatsby clean",
"prepare": "husky install"
},
"dependencies": {
"@apollo/client": "^3.10.4",
"@stripe/react-stripe-js": "^2.7.1",
"@stripe/stripe-js": "^2.4.0",
"@wordpress/block-library": "^8.35.0",
"algoliasearch": "^4.23.3",
"cross-fetch": "^4.0.0",
"dotenv": "^16.4.5",
"gatsby": "^5.13.6",
"gatsby-adapter-netlify": "^1.1.6",
"gatsby-plugin-algolia": "^1.0.3",
"gatsby-plugin-facebook-pixel": "^1.0.8",
"gatsby-plugin-google-tagmanager": "^5.13.1",
"gatsby-plugin-image": "^3.13.1",
"gatsby-plugin-mailchimp": "^5.2.2",
"gatsby-plugin-manifest": "^5.13.1",
"gatsby-plugin-react-svg": "^3.3.0",
"gatsby-plugin-sharp": "^5.13.1",
"gatsby-plugin-sitemap": "^6.13.1",
"gatsby-plugin-styled-components": "^6.13.1",
"gatsby-plugin-tawk.to": "^1.0.8",
"gatsby-source-filesystem": "^5.13.1",
"gatsby-source-instagram-all": "^5.2.4",
"gatsby-source-wordpress": "^7.13.4",
"gatsby-transformer-sharp": "^5.13.1",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-instantsearch": "^7.10.0",
"sanitize.css": "^13.0.0",
"sharp": "^0.33.4",
"stripe": "^14.25.0",
"styled-components": "^5.3.11",
"stylelint": "^14.16.1",
"swiper": "^9.4.1"
},
"devDependencies": {
"@stylelint/postcss-css-in-js": "^0.38.0",
"@types/styled-components": "^5.1.34",
"@typescript-eslint/eslint-plugin": "^5.62.0",
"@typescript-eslint/parser": "^5.62.0",
"eslint": "^8.57.0",
"eslint-config-prettier": "^8.10.0",
"eslint-loader": "^4.0.2",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-react": "^7.34.2",
"gatsby-plugin-eslint": "^4.0.4",
"gatsby-plugin-root-import": "^2.0.9",
"husky": "^7.0.4",
"prettier": "^2.8.8",
"stylelint-config-prettier": "^9.0.4",
"stylelint-config-rational-order": "^0.1.2",
"stylelint-config-recommended": "^6.0.0",
"stylelint-config-styled-components": "^0.1.1",
"stylelint-order": "^5.0.0",
"typescript": "^4.9.5"
}
netlify.toml file:
[build.environment]
NETLIFY_IMAGE_CDN = "true"
[images]
remote_images = [
"https://simple.tamulaitis.com/.*"
]
[dev]
command = "npm run start"
targetPort = 8000
port = 8888
gatsby-config:
const path = require('path');
const adapter = require("gatsby-adapter-netlify").default
require('dotenv').config();
const gatsbyRequiredRules = path.join(
process.cwd(),
'node_modules',
'gatsby',
'dist',
'utils',
'eslint-rules'
);
module.exports = {
adapter: adapter({
excludeDatastoreFromEngineFunction: false,
imageCDN: true,
}),
siteMetadata: {
title: `x`,
description: `x`,
author: `x`,
siteUrl: `https://ramioda.lt`,
image: '/logo-og.jpg'
},
plugins: [
{
resolve: 'gatsby-source-wordpress',
options: {
url: 'https://simple.tamulaitis.com/graphql',
develop: {
hardCacheMediaFiles: true,
hardCacheData: true,
},
html: {
createStaticFiles: false,
},
schema: {
requestConcurrency: 3,
perPage: 10,
timeout: 30000000,
},
type: {
MediaItem: {
excludeFieldNames: [
'contentNodes',
'seo',
'ancestors',
'author',
'template',
'lastEditedBy',
'authorDatabaseId',
'authorId',
'contentTypeName',
'dateGmt',
'desiredSlug',
'enclosure',
'isContentNode',
'isTermNode',
'modified',
'modifiedGmt',
'parentDatabaseId',
'parentId',
'srcSet',
'parent',
'children',
],
createFileNodes: false,
},
},
},
},
'gatsby-plugin-image',
'gatsby-plugin-sharp',
'gatsby-transformer-sharp',
'gatsby-plugin-styled-components',
'gatsby-plugin-typescript',
{
resolve: 'gatsby-plugin-sitemap',
options: {
query: `
{
allSitePage {
nodes {
path
}
}
site {
siteMetadata {
siteUrl
}
}
allWpContentNode(filter: {nodeType: {in: ["Post", "Page", "SimpleProduct"]}}) {
nodes {
... on WpPost {
uri
modifiedGmt
}
... on WpPage {
uri
modifiedGmt
}
... on WpSimpleProduct {
uri
modifiedGmt
}
}
}
}
`,
resolvePages: ({
allSitePage: { nodes: allPages },
allWpContentNode: { nodes: allWpNodes },
}) => {
const wpNodeMap = allWpNodes.reduce((acc, node) => {
const { uri } = node;
acc[uri] = node;
return acc;
}, {});
return allPages.map(page => {
return { ...page, ...wpNodeMap[page.path] };
});
},
serialize: ({ path, modifiedGmt }) => {
return {
url: path,
lastmod: modifiedGmt,
priority: 1,
};
},
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `images`,
path: `${__dirname}/src/assets/images`,
},
},
{
resolve: 'gatsby-plugin-eslint',
options: {
rulePaths: [gatsbyRequiredRules],
},
},
{
resolve: 'gatsby-plugin-react-svg',
options: {
rule: {
include: /icons/,
},
},
},
{
resolve: 'gatsby-plugin-root-import',
options: {
src: path.join(__dirname, 'src'),
},
},
{
resolve: 'gatsby-plugin-google-tagmanager',
options: {
id: 'x',
},
},
{
resolve: `gatsby-plugin-manifest`,
options: {
name: `Rami oda`,
short_name: `Rami oda`,
start_url: `/`,
background_color: `#F8F6F3`,
theme_color: `#F8F6F3`,
display: `minimal-ui`,
icon: `src/assets/images/favicon.png`,
},
},
{
resolve: 'gatsby-plugin-mailchimp',
options: {
endpoint:
'x',
timeout: 3500,
},
},
{
resolve: `gatsby-source-instagram-all`,
options: {
access_token: process.env.INSTAGRAM_ACCESS_TOKEN,
},
},
{
resolve: `gatsby-plugin-facebook-pixel`,
options: {
pixelId: 'x',
},
},
{
resolve: `gatsby-plugin-algolia`,
options: {
appId: process.env.GATSBY_ALGOLIA_APP_ID,
apiKey: process.env.ALGOLIA_ADMIN_KEY,
queries: require('./src/utils/algolia/queries'),
},
},
{
resolve: `gatsby-plugin-tawk.to`,
options: {
tawkId: 'x',
tawkKey: 'x',
},
},
],
};