Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/BuilderIO/builder into main
Browse files Browse the repository at this point in the history
  • Loading branch information
akshatgarg12 committed May 5, 2023
2 parents c7b9568 + 9279e89 commit 2075df4
Show file tree
Hide file tree
Showing 101 changed files with 2,275 additions and 6,913 deletions.
14 changes: 7 additions & 7 deletions examples/astro-solidjs/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/astro-solidjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"solid-js": "1.4.3"
},
"dependencies": {
"@builder.io/sdk-solid": "^0.2.1",
"@builder.io/sdk-solid": "^0.2.3",
"solid-styled-components": "^0.27.6"
}
}
16 changes: 5 additions & 11 deletions examples/next-app-directory/README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# Next.js experimental app directory + Builder.io starter

This example walks you through using Builder.io with an experimental version of Next.js >= 13 application.
This example walks you through using Builder.io with an experimental version of Next.js >= 13 application.

### 🏗️ Experimental

This starter includes the `app` folder structure which of you can find more details [here](https://beta.nextjs.org/docs/app-directory-roadmap)

## Prerequisites
Expand Down Expand Up @@ -42,7 +43,7 @@ This example provides you with a ready-made application that you can copy locall
1. Change into the example application by using the `cd` command:

```shell
cd builder/examples/simple-next-js-13
cd builder/examples/next-app-directory
```

1. Open this directory in your favorite code editor.
Expand Down Expand Up @@ -88,6 +89,7 @@ Now that you have a new space, the next step is connecting "My Next.js App" with
To connect your Builder.io space and your application, set the model preview URL and get your API key as follows:

#### Setting the model preview URL

To enable Builder to open your site in the visual editor, you will need to provide a URL that we can open which has the Builder rendering component in it.

Go to the [/models](https://builder.io/models) page in Builder and choose your **page** model.
Expand All @@ -104,15 +106,7 @@ In the [Account settings](https://builder.io/account/space), copy your Public AP

![Image showing where to get your API Key](https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F761e521019724d8bbd59ed0d5f079c8e)


In your code editor, configure `builderConfig.json` with the [Public API Key](https://builder.io/account/space) by adding a line to each file as follows, but using your Public API Key that you copied in the previous step.
For example:

```shell
...
"apiKey": "Your api key goes here" <-- replace this with your API Key
...
```
In your code editor, configure [`./src/builderConfig.js`](./src/builderConfig.js) with the [Public API Key](https://builder.io/account/space) by replacing the value of `API_KEY`.

## Running your application

Expand Down
3 changes: 0 additions & 3 deletions examples/next-app-directory/builderConfig.json

This file was deleted.

8 changes: 0 additions & 8 deletions examples/next-app-directory/next.config.js

This file was deleted.

11 changes: 11 additions & 0 deletions examples/next-app-directory/next.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/**
* @type {import('next').NextConfig}
*/
export default {
experimental: {
appDir: true,
},
typescript: {
tsconfigPath: './tsconfig.nextjs.json',
},
};

0 comments on commit 2075df4

Please sign in to comment.