Sites Development - Developer guidelines

General

Serveronet Client serves static files with API Database available

Site API Documentation ▶

Single Page Applications - SPA

SPA Sites require single_Page_Application in Site Config to be set to true for proper routing

Allow remote access to SN backend

Edit .env

  • API_KEY_SITE_BACKEND_ENABLED=true
  • DEV_SITE_API_CORS_ALLOW_ALL=true

Change requires config clear

Reserved fields and paths

Reserved fields for site's database

Publishing

When publishing info that it needs to hosted for some time

Vanity Address steps

//TODO Outdated

DNS Link TXT record

Add TXT record with snetdnslink as host (snetdnslink.example.com) with value snetdnslink with site ID, for example: snetdnslink=gjdg45... Serveronet client will check snetdnslink.example.com for Site ID of example.com Reference for Namecheap: https://www.namecheap.com/support/knowledgebase/article.aspx/9776/2237/how-to-create-a-subdomain-for-my-domain/#ip

You can check if configuration is correct with dig (Linux) dig snetdnslink.example.com -t TXT ;; ANSWER SECTION: snetdnslink.example.com. 3600 IN TXT "snetdnslink=gjdg45..."


Information

Lorem ipsum, dolor sit amet consectetur adipisicing elit.