Alea Ddine commited on
Commit ·
d6d51f6
1
Parent(s): 2e30678
Fix hosting configuration for Hugging Face Spaces
Browse files- next.config.ts +1 -0
- package.json +1 -1
next.config.ts
CHANGED
|
@@ -2,6 +2,7 @@ import type { NextConfig } from "next";
|
|
| 2 |
|
| 3 |
const nextConfig: NextConfig = {
|
| 4 |
/* config options here */
|
|
|
|
| 5 |
webpack(config, options) {
|
| 6 |
const { isServer } = options;
|
| 7 |
config.module.rules.push({
|
|
|
|
| 2 |
|
| 3 |
const nextConfig: NextConfig = {
|
| 4 |
/* config options here */
|
| 5 |
+
output: 'standalone',
|
| 6 |
webpack(config, options) {
|
| 7 |
const { isServer } = options;
|
| 8 |
config.module.rules.push({
|
package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
| 5 |
"scripts": {
|
| 6 |
"dev": "next dev --turbopack",
|
| 7 |
"build": "next build --turbopack",
|
| 8 |
-
"start": "next start"
|
| 9 |
},
|
| 10 |
"dependencies": {
|
| 11 |
"@huggingface/hub": "^2.6.2",
|
|
|
|
| 5 |
"scripts": {
|
| 6 |
"dev": "next dev --turbopack",
|
| 7 |
"build": "next build --turbopack",
|
| 8 |
+
"start": "next start -H 0.0.0.0 -p 3000"
|
| 9 |
},
|
| 10 |
"dependencies": {
|
| 11 |
"@huggingface/hub": "^2.6.2",
|