The goal is for [healthiii.com](http://healthiii.com "") to display the data from [factiii.com/s/healthiii](http://factiii.com/s/healthiii ""). With that we will need to add a config so it can choose to do this for personal healthiii posts or show the entire spaces post. This will allow us to launch other paid sites for customers in the future. It also allows us to market healthiii as a health tracking platform. Let’s do a small change for /index then test it on healthiii then we can refactor.
- Probably do not need the Link and the rewrites in next config
- Can do normal config, but make an env that changes how the /index displays
- The config can set the spaceSlug IE the space you are talking to, the space type IE personal only, community, or both using PostRenderOptions
- Make a spaceConfig route for back end
- Return spaceName, spaceSlug, spaceConfig
- Delete [spaceSlug[ route
- Modify index to use space when spaceSlug is set
- Use middleware to set the spaceSlug from hostname
- Also replace the space query in localPreference with spaceConfig query that we made above
- Add TestAppSpace to end for testing configs in dev