Next JS SSR initial load slow and DOMCotnentLoaded takes over 6 seconds

Regarding Site ID: 8fcf0332-3dab-4068-a1c4-c4942a93eb31


Recently I published a Next JS website using SSR and I noticed that the initial load time takes quite a while. I have a Pro plan and I was wondering if you could help me out?

Kind regards,

Tim Peterson

Hey @tim_peterson :wave:

Thanks so much for reaching out. Can you please share your project repo, if public, as well as your most recent deploy log?

If your repo isn’t public, please share your package.json! This will help us look into things further for you.

Hi @hillary! Thank you for your reply!

Here is the package.json

  "name": "web",
  "version": "0.0.0",
  "private": true,
  "scripts": {
    "dev": "next dev --port=3002",
    "build": "next build",
    "start": "next start",
    "lint": "next lint"
  "dependencies": {
    "@apollo/client": "^3.5.7",
    "@heroicons/react": "^1.0.6",
    "apollo-server": "^3.6.1",
    "apollo-server-micro": "^3.6.1",
    "axios": "^0.24.0",
    "express": "^4.17.2",
    "framer-motion": "^6.2.4",
    "fs": "^0.0.1-security",
    "graphiql": "^1.5.16",
    "graphiql-code-exporter": "^3.0.3",
    "graphql": "^16.2.0",
    "i18next": "^21.6.6",
    "luxon": "^2.3.1",
    "micro": "^9.3.4",
    "next": "12.1.0",
    "react": "17.0.2",
    "react-dom": "17.0.2",
    "react-i18next": "^11.15.3",
    "react-icons": "^4.3.1",
    "react-query": "^3.34.16",
    "swr": "^1.2.2",
    "ui": "*",
    "zustand": "^3.7.1"
  "devDependencies": {
    "@netlify/plugin-nextjs": "^4.2.8",
    "@types/react": "17.0.37",
    "autoprefixer": "^10.4.2",
    "config": "*",
    "eslint": "7.32.0",
    "next-transpile-modules": "9.0.0",
    "postcss": "^8.4.6",
    "tailwindcss": "^3.0.23",
    "tsconfig": "*",
    "typescript": "4.5.2"

I’ve read similar issues and I was wondering if the Netlify server functions, that handle Next JS SSR, could be moved to an EU server. Therefor, could the entire site be moved to an EU server? The site is catered towards an EU audience.

Kind regards, Tim

Hey there, @tim_peterson :wave:

Following up here-- I can’t reproduce the slow load. Can you share a HAR file replicating the issue so that we can look into it further?