Skip to content

EAOS Hotel Site

Hotel site developers use this package to reuse bilingual Astro pages and booking presentation from a published CMS snapshot.

Share routes, layouts and publication outputs across hotel sites. Facility content and theme choices come from CMS settings so consumers can focus on site configuration.

  • CMS-only content loaders pinned to a publication.
  • Japanese and English routes, booking UI and structured output.
  • CMS-selected shared themes and local preview image helpers.
  • Static output with explicit server handlers for contact and analytics.

The packages use GitHub Packages. Prerequisites: Bun, access to the package registry, and registry authentication configured outside source files. Examples use fictional site identifiers and reserved example domains.

Terminal window
bun add @dataarthub/eaos-hotel-site-astro astro react react-dom

Save as example.ts, then run bun example.ts.

import { previewImageOrigins } from '@dataarthub/eaos-hotel-site-astro/core/content/media-policy';
console.log(previewImageOrigins([
{ src: 'http://localhost:4321/image.webp' },
'https://example.com/image.webp',
])); // http://localhost:4321