Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Commit
•
7f69808
1
Parent(s):
d176eee
trying a different workaround..
Browse files
next.config.js
CHANGED
@@ -1,8 +1,5 @@
|
|
1 |
/** @type {import('next').NextConfig} */
|
2 |
const nextConfig = {
|
3 |
-
images: {
|
4 |
-
formats: ['image/avif', 'image/webp', 'image/png']
|
5 |
-
},
|
6 |
experimental: {
|
7 |
serverActions: {
|
8 |
// 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
|
src/components/core/providers/ComputeProviderLogo.tsx
CHANGED
@@ -25,6 +25,17 @@ export function ComputeProviderLogo({
|
|
25 |
height={height as any}
|
26 |
alt={formatProvider(provider)}
|
27 |
className={cn(className)}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
28 |
/>
|
29 |
)
|
30 |
}
|
|
|
25 |
height={height as any}
|
26 |
alt={formatProvider(provider)}
|
27 |
className={cn(className)}
|
28 |
+
|
29 |
+
// there is currently a bug when we build on GitHub Actions
|
30 |
+
// the .png files are not recognized:
|
31 |
+
//
|
32 |
+
// Creating an optimized production build ...
|
33 |
+
// Failed to compile.
|
34 |
+
// ./logos:2
|
35 |
+
// Error: Image import "./anthropic.png" is not a valid image file. The image may be corrupted or an unsupported format.
|
36 |
+
//
|
37 |
+
// So as a workaround, we do this:
|
38 |
+
unoptimized
|
39 |
/>
|
40 |
)
|
41 |
}
|