Skip to content

Commit

Permalink
leave old samples file
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaeltm committed May 17, 2024
1 parent a23e5f1 commit 9251f9e
Show file tree
Hide file tree
Showing 4 changed files with 175 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ yarn-error.log*

defang
samples
/static/samples.json
/static/samples-v2.json
2 changes: 1 addition & 1 deletion scripts/prep-samples.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,4 @@ const stringified = JSON.stringify(jsonArray, null, 2);
// fs.writeFileSync(samplesMd, samplesMdContents);

// save the json to the samples.json file in static
fs.writeFileSync(path.join(__dirname, '..', 'static', 'samples.json'), stringified);
fs.writeFileSync(path.join(__dirname, '..', 'static', 'samples-v2.json'), stringified);
2 changes: 1 addition & 1 deletion src/components/Samples/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export default function Samples() {

useEffect(() => {
const fetchSamples = async () => {
const response = await fetch('/samples.json');
const response = await fetch('/samples-v2.json');
const samples = await response.json();

fuse.setCollection(samples);
Expand Down
Loading

0 comments on commit 9251f9e

Please sign in to comment.