Using github

What is the name of the domain?

tyhequities.com

What is the issue you’re encountering

cant link github to pages for hosting. everytime i try to use next.js (static HTML Export) i get an error.

2024-11-18T20:35:55.730953Z Cloning repository…
2024-11-18T20:35:56.348737Z From GitHub - ivapeJ/TYH
2024-11-18T20:35:56.349204Z * branch 9b5a5fb8a8a89029a956752ed1aab17dfad6a6e8 → FETCH_HEAD
2024-11-18T20:35:56.349364Z
2024-11-18T20:35:56.373396Z HEAD is now at 9b5a5fb sampleSite
2024-11-18T20:35:56.373818Z
2024-11-18T20:35:56.457291Z
2024-11-18T20:35:56.457758Z Using v2 root directory strategy
2024-11-18T20:35:56.481663Z Success: Finished cloning repository files
2024-11-18T20:35:58.032749Z Checking for configuration in a wrangler.toml configuration file (BETA)
2024-11-18T20:35:58.033415Z
2024-11-18T20:35:58.137282Z No wrangler.toml file found. Continuing.
2024-11-18T20:35:58.286092Z Detected the following tools from environment:
2024-11-18T20:35:58.286779Z Executing user command: npx next build
2024-11-18T20:36:00.14966Z npm WARN exec The following package was not found and will be installed: [email protected]
2024-11-18T20:36:01.863238Z npm WARN EBADENGINE Unsupported engine {
2024-11-18T20:36:01.863495Z npm WARN EBADENGINE package: ‘[email protected]’,
2024-11-18T20:36:01.863624Z npm WARN EBADENGINE required: { node: '^18.18.0
2024-11-18T20:36:01.863751Z npm WARN EBADENGINE current: { node: ‘v18.17.1’, npm: ‘9.6.7’ }
2024-11-18T20:36:01.863894Z npm WARN EBADENGINE }
2024-11-18T20:36:08.702887Z You are using Node.js 18.17.1. For Next.js, Node.js version ^18.18.0
2024-11-18T20:36:08.726087Z Failed: Error while executing user command. Exited with error code: 1
2024-11-18T20:36:08.738164Z Failed: build command exited with code: 1
2024-11-18T20:36:09.477116Z Failed: error occurred while running build command

Set an environment variable NODE_VERSION on the project, with the value being whatever version of Node you want to use. You can abbreviate it to just a major version, like 22.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.