Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Commit
•
ac12f6c
1
Parent(s):
d8662ab
use next start
Browse files- Dockerfile +1 -1
- README.md +16 -0
- next.config.js +0 -2
Dockerfile
CHANGED
@@ -62,4 +62,4 @@ EXPOSE 3000
|
|
62 |
|
63 |
ENV PORT 3000
|
64 |
|
65 |
-
CMD ["
|
|
|
62 |
|
63 |
ENV PORT 3000
|
64 |
|
65 |
+
CMD ["npm", "run", "start"]
|
README.md
CHANGED
@@ -12,6 +12,22 @@ header: mini
|
|
12 |
short_description: Visualize OpenClap files 🎞️
|
13 |
---
|
14 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
15 |
## Instructions for developers
|
16 |
|
17 |
During development we can use a path like this to quickly test:
|
|
|
12 |
short_description: Visualize OpenClap files 🎞️
|
13 |
---
|
14 |
|
15 |
+
|
16 |
+
## Known bugs
|
17 |
+
|
18 |
+
For some strange reason it works locally but not when built? hmm.
|
19 |
+
|
20 |
+
This works:
|
21 |
+
```
|
22 |
+
http://localhost:3000/?clap=https://huggingface.co/spaces/jbilcke-hf/clap-viewer/resolve/main/public/samples/test.clap
|
23 |
+
```
|
24 |
+
|
25 |
+
This doesn't (the .clap loads but it doesn't render due to a JSX error):
|
26 |
+
|
27 |
+
```
|
28 |
+
https://jbilcke-hf-clap-viewer.hf.space/?clap=https://huggingface.co/spaces/jbilcke-hf/clap-viewer/resolve/main/public/samples/test.clap
|
29 |
+
```
|
30 |
+
|
31 |
## Instructions for developers
|
32 |
|
33 |
During development we can use a path like this to quickly test:
|
next.config.js
CHANGED
@@ -1,7 +1,5 @@
|
|
1 |
/** @type {import('next').NextConfig} */
|
2 |
const nextConfig = {
|
3 |
-
output: 'standalone',
|
4 |
-
|
5 |
experimental: {
|
6 |
serverActions: {
|
7 |
// a clap file can be quite large - but that's OK
|
|
|
1 |
/** @type {import('next').NextConfig} */
|
2 |
const nextConfig = {
|
|
|
|
|
3 |
experimental: {
|
4 |
serverActions: {
|
5 |
// a clap file can be quite large - but that's OK
|