You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| content.collections | Array | Array of content keys to allow for data entry and routing: "posts", "paths" |
36
+
| content.localize_pages | Boolean | If `true` pages content will be pulled from a locale directory (e.g. `/en/My-Awesome-Page.mdx`) |
46
37
| core_data | Object | Core Data configuration |
47
38
| core_data.url | String | URL of the Core Data application |
48
39
| core_data.project_ids | Array | Numeric array of Core Data project IDs to be included |
@@ -146,7 +137,7 @@ Move the `.mdx` files in the `content/about`, `content/paths`, `/content/posts`
146
137
147
138
If using Astro, media will typically be stored in `/src/assets`. These media files will need to be moved to the newly created S3 bucket and the paths in the `.mdx` files will need to be updated accordingly.
148
139
149
-
#####Search detail filtering
140
+
## Search detail filtering
150
141
151
142
You can filter what is shown in the detail pane when clicking an item in the search view. This is accomplished by adding a result_filtering object to the search block in the config.json file in the content directory.
152
143
@@ -184,3 +175,31 @@ The following related records can be excluded:
Follow the instructions below to build a static version of a site to host on GitHub Pages, Reclaim Hosting, AWS, etc. The steps will include instructions for building the site on a local development machine and uploading the assets to a static hosting service.
181
+
182
+
#### Core Data on Heroku
183
+
For Core Data applications hosted on Heroku, it may be advisable to scale the dyno infrastructure, either by upgrading the web dynos and/or adding more dynos.
184
+
185
+
#### 1. Build
186
+
From `/path/to/core-data-places` run the following:
187
+
188
+
```
189
+
npm install && npm run build
190
+
```
191
+
192
+
This command will install all node dependencies, and build the AstroJS site. The time required to build the site will be directly proportional to the amount of data contained in the Core Data project as it will:
193
+
- Fetch all of the records from Core Data to store in the Astro Content Layer
194
+
- Build static pages and API endpoints for each of the records
195
+
196
+
Build times can also be affected by the number of content records (paths, posts, pages, etc) added to TinaCMS, but this will likely be trivial compared to the number of Core Data records.
197
+
198
+
#### 2. Compress
199
+
After building has completed, assets will be exported to the `/dist` directory. Use a compression utility to zip the contents of the directory.
200
+
201
+
#### 3. Transfer
202
+
Using a FTP/SFTP service, transfer compressed assets to the static hosting platform.
203
+
204
+
#### 4. Extract
205
+
Extract the contents of the compressed assets to the root path of the webserver.
0 commit comments