-
-
Notifications
You must be signed in to change notification settings - Fork 338
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
node .output/server/index.mjs #267
Comments
https://wongsaang.github.io/chatgpt-ui/guide/configuration.html#client-configuration This issue is likely caused by missing environment variables. Please create a .env file in the project root directory, and then add the environment variables as mentioned in the documentation. Especially |
Thank you, the .env file had been placed and the import { createProxyMiddleware } from 'http-proxy-middleware'
export default defineEventHandler(async (event) => {
await new Promise((resolve, reject) => {
createProxyMiddleware({
target: process.env.SERVER_DOMAIN,
// target: "http://xxx.xxxx.xxx.1xx:8000/",
pathFilter: '/api',
})(event.node.req, event.node.res, (err) => {
if (err)
reject(err)
else
resolve(true)
})
})
}) |
You can also define system-level environment variables so that Node can read them. Alternatively, you can prefix your command with an environment variable, for example: |
Thank you, the issue was solved by define the systemctl-level environment as |
BMC doesn't seem to support Alipay, but you can input UnionPay card information in the bank card section. If you'd like to support me, you can give it a try. Thank you! |
I don't have any knowledge about nuxt. When running the project, the following problems occurred:
I executed the 'yarn install' command to download the related dependencies, and then executed 'yarn build' command to package it. After the packaging was completed, executing 'node .output/server/index.mjs' resulted in an error (Node version 16.16, Windows 11 machine), the error message is as follows:
Performing the above operations on Ubuntu 22.04 does not result in an error. After executing 'node .output/server/index.mjs', it displays 'listening ::3000', but there is no response when accessing it in the browser; it keeps loading.
Can I start the packaged project directly using 'node .output/server/index.mjs' without deploying it using Docker?
我对nuxt没有了解,在运行项目时出现了下面的问题
···
node .output/server/index.mjs
···
报错(node版本16.16, 机器windows11),报错如下:
请问如果不使用docker部署,直接使用node .output/server/index.mjs启动打包的项目可以吗?
The text was updated successfully, but these errors were encountered: