Skip to content

Commit

Permalink
Fix release build errors (#99)
Browse files Browse the repository at this point in the history
* Escape apostrophes

This makes the linter happy

Partially addresses #97

Signed-off-by: Ben Cotton <ben@kusari.dev>

* Disable the missingSuspenseWithCSRBailout option

This allows the project to build, but it is not a long-term fix, as the option
won't be available in Next 15 (we're using 14). See issue #98 for more details.

Signed-off-by: Ben Cotton <ben@kusari.dev>

---------

Signed-off-by: Ben Cotton <ben@kusari.dev>
  • Loading branch information
funnelfiasco authored Sep 18, 2024
1 parent 45ec85f commit 2d9908b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
4 changes: 2 additions & 2 deletions components/known/knownInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ const KnownInfo = () => {
<div className="m-10">
{handleSbomClicked &&
(sboms.length === 0 ? (
<h2>Didn't find SBOMs</h2>
<h2>Didn&apos;t find SBOMs</h2>
) : (
<ul>
{sboms.map((sbom) => (
Expand All @@ -288,7 +288,7 @@ const KnownInfo = () => {
<div className="m-10">
{handleVulnClicked &&
(filteredVulns.length === 0 ? (
<h2>Didn't find vulns</h2>
<h2>Didn&apos;t find vulns</h2>
) : (
<ul>
{filteredVulns.map((vuln, index) => (
Expand Down
2 changes: 1 addition & 1 deletion components/layout/footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ export default function Footer() {
<>
<div className="flex justify-center bg-stone-200 dark:bg-stone-800 px-2 md:px-20 items-center backdrop-blur-sm w-full py-4">
<h1 className="text-black sm:text-lg ml-2 dark:text-white">
We'd love to hear how we can make the visualizer more useful.{" "}
We&apos;d love to hear how we can make the visualizer more useful.{" "}
<a
className="text-purple-900 font-semibold"
href="https://forms.gle/Bv1RgaPvuxXdJPt17"
Expand Down
5 changes: 5 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ const nextConfig = {
},
];
},
// FIXME: Instead of disabling this, we should fix the problem. See
// https://github.com/guacsec/guac-visualizer/issues/98
experimental: {
missingSuspenseWithCSRBailout: false,
},
};

module.exports = nextConfig;

0 comments on commit 2d9908b

Please sign in to comment.