Questions tagged [static-site-generation]

Static Site Generators (SSG) are frameworks that build websites from static content. For example, one can build an online blog from a list of text files.

178 questions
0
votes
0 answers

Deploy Next.js application on Northflank with DockerFile

I have a problem with env variables and DockerFile. Here's my DockerFile: FROM node:18-alpine AS base # Install dependencies only when needed FROM base AS deps # Check https://github.com/nodejs/docker-…
Wiktor Kujawa
  • 595
  • 4
  • 21
0
votes
0 answers

SSG blog render twice

I am developing a blog using Nuxt3 and Element Plus. I am deploying it to Firebase Hosting by generating it with CircleCI. The blog is in Japanese and can be accessed at https://roppong.com/blog/. While there are no issues when I run "yarn dev"…
0
votes
1 answer

Nextjs SSG rendering in development is very slow

Before implementing Nextjs SSG (static side generation), the loading speed during development is normal and acceptable. However, after implementing Nextjs SSG, the development speed is really slow, even though I know after building the project is…
Barry
  • 51
  • 1
  • 4
0
votes
0 answers

How to build a full app with vue-SSG and node?

I have a vue 3 SSR-SSG project. The original codes come from this directory that is from official Vue docs. My project also have a back-end that is built with node. The main file of the back-end part is called server.js and the code of that…
hamid-davodi
  • 1,602
  • 2
  • 12
  • 26
0
votes
0 answers

Next.js static site - how to separate code and content (including static files) into two projects

I have a static blog built using next.js and hosted by vercel. I would like separate the code and the blog content (markdown files, images, etc) into different repos and make the content repo a submodule within the blog repo. This would be easy if…
John
  • 949
  • 1
  • 9
  • 20
0
votes
2 answers

How can I open a project on Ubuntu server, specifying IP address with port?

I ran into the problem that when deploying the next application on the ubuntu server, and starting the production build (or even just dev), I can't open this application by specifying the server address and port. I tried to make a deployment on 2…
0
votes
2 answers

when hard refresh page in next js give error 404

when I build my nextJs application on the server after multi-refreshing the home page or other pages giving a 404 error by the way I add this code to package json file but still have error module.exports = { trailingSlash: true } my page is…
Alireza Bagheri
  • 207
  • 3
  • 15
0
votes
0 answers

On demand ISR - disable cache and render updated content for the first request

Environment information Operating System: Platform: linux Arch: x64 Version: #66~20.04.1-Ubuntu SMP Wed Jan 25 09:41:30 UTC 2023 Binaries: Node: 14.17.5 npm: 6.14.14 Yarn: N/A pnpm: N/A Relevant packages: next: 13.1.6 eslint-config-next:…
0
votes
0 answers

Nuxt - define static meta tags per site without using SSR

Is it possible to define static meta data for each route in nuxt.config.js? Suppose there is the following folder structure: - pages - examplepage.vue - loremipsumpage.vue - index.vue the following is configured in nuxt.config.js: …
0
votes
0 answers

Generate paginated URLs like ?page=2, ?page=3 etc. in NextJS getStaticPaths and access the query params in getStaticProps

I am building a NextJS based site with multiple locales (different domains) where the data comes from storyblok CMS (folder level translation). I am trying to figure out the best approach to statically generate the paginated URLs for the blog and…
0
votes
0 answers

nextjs - looking for partial build solution without SSR part

My nextjs (v13) app have a first common part with index and a form and a second part with SSG + ISR (36k files) the form need to be updated regularly and each build generate 36k files Tried to find a solution to build without SSG because the…
0
votes
0 answers

Why am I getting CORS error when API return data without crashing app

I am starting with the Nextjs app and BigCommerce API. I start testing the best ways to fetch data, and currently, I am testing react-query with SSG. I am not sure why am I getting a CORS error when data is returned. Data is returned before the…
Nedim
  • 157
  • 1
  • 1
  • 10
0
votes
1 answer

nextjs dynamic pages shows 404 after project hosted in ubuntu server

I've been working on this project for quite a long time now. Some of my dynamic pages have issues with 404 error even though they are running perfectly fine in localhost. I tried using revalidate and also fallback: true and false. But it seems not…
0
votes
0 answers

Next JS SSG Page shows "found page without a React Component as default export" while deploying in vercel

Just to mention that the answers in this Question did not work for me. So I have a page which used Static Site Generation(SSG) and no matter how i export it, while deploying in vercel the error always shows "found page without a React Component as…
0
votes
1 answer

Change the address without refreshing the page

I have a category list, which changes the address of the page by selecting each category, similar to dynamic adress, for example, when you select a game, the address goes to: /s/game changes Or you choose real estate /s/estate To transfer from the…