Skip to content

Commit ace587e

Browse files
feat: review wording and snippet
Signed-off-by: David Dal Busco <david.dalbusco@outlook.com>
1 parent ce5aebe commit ace587e

3 files changed

Lines changed: 10 additions & 18 deletions

File tree

src/components/Snippets/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ export default function Snippets(): JSX.Element {
8686
>
8787
<Feature
8888
title="Datastore"
89-
text="Store data on the blockchain in a simple key-value model, organized by collections of documents."
89+
text="Store data in a simple key-value model, organized by collections of documents."
9090
link={
9191
<Link to="/docs/build/datastore" className={styles.link}>
9292
Learn more
@@ -104,7 +104,7 @@ export default function Snippets(): JSX.Element {
104104
>
105105
<Feature
106106
title="Storage"
107-
text="Easily upload and serve user-generated content, such as files, and images, on Web3."
107+
text="Easily upload and serve user-generated content, such as files, and images."
108108
link={
109109
<Link to="/docs/build/storage" className={styles.link}>
110110
Learn more
@@ -122,7 +122,7 @@ export default function Snippets(): JSX.Element {
122122
>
123123
<Feature
124124
title="Hosting"
125-
text="Hosting powered by smart contracts with support for custom domains to maintain your brand identity."
125+
text="Serve your app globally with custom domains. No infra, just config."
126126
link={
127127
<Link to="/docs/build/hosting" className={styles.link}>
128128
Learn more

src/snippets/analytics.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ export const code = {
33
value: `// Analytics events are collected using a tiny library (< 3KB gzipped)
44
import { initOrbiter, trackEvent } from "@junobuild/analytics";
55
6-
await initOrbiter();
6+
initOrbiter();
77
88
// In addition to standard metrics such as sessions, page views, etc.,
99
// it can also gather web vitals out of the box
10-
await initOrbiter({
10+
initOrbiter({
1111
options: {
1212
performance: true
1313
}

src/snippets/hosting.ts

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,12 @@ import { defineConfig } from "@junobuild/config";
99
// Headers, redirects, rewrites, 404s, etc., are supported.
1010
export default defineConfig({
1111
satellite: {
12-
id: "ucnx3-aqaaa-aaaal-ab3ea-cai",
12+
ids: {
13+
production: "ucnx3-aqaaa-aaaal-ab3ea-cai",
14+
development: "ffff-eeee-ddddd-ccccc-cai"
15+
},
1316
source: "build",
17+
predeploy: ["npm run build"]
1418
storage: {
1519
headers: [
1620
{
@@ -21,17 +25,5 @@ export default defineConfig({
2125
}
2226
}
2327
});
24-
25-
// Deploy your app using the CLI
26-
❯ npm i -g @junobuild/cli
27-
❯ juno deploy
28-
29-
// Or with GitHub Actions
30-
- name: Deploy to Juno
31-
uses: junobuild/juno-action@main
32-
with:
33-
args: deploy
34-
env:
35-
JUNO_TOKEN: ...
3628
`
3729
};

0 commit comments

Comments
 (0)