Skip to content

Commit 9251f9e

Browse files
committed
leave old samples file
1 parent a23e5f1 commit 9251f9e

File tree

4 files changed

+175
-3
lines changed

4 files changed

+175
-3
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ yarn-error.log*
2121

2222
defang
2323
samples
24-
/static/samples.json
24+
/static/samples-v2.json

scripts/prep-samples.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,4 @@ const stringified = JSON.stringify(jsonArray, null, 2);
5454
// fs.writeFileSync(samplesMd, samplesMdContents);
5555

5656
// save the json to the samples.json file in static
57-
fs.writeFileSync(path.join(__dirname, '..', 'static', 'samples.json'), stringified);
57+
fs.writeFileSync(path.join(__dirname, '..', 'static', 'samples-v2.json'), stringified);

src/components/Samples/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ export default function Samples() {
9898

9999
useEffect(() => {
100100
const fetchSamples = async () => {
101-
const response = await fetch('/samples.json');
101+
const response = await fetch('/samples-v2.json');
102102
const samples = await response.json();
103103

104104
fuse.setCollection(samples);

0 commit comments

Comments
 (0)