luiscosta-8050, To add additional clarity on both the services (Static WebApp and Cognitive Search) specific to your requirement.
On Azure Cognitive Search, Built-in indexers only work with data source creation. If you would like to use the service and index without data sources, you would need to build your own indexer using the Push API (Data import and data ingestion - Azure Cognitive Search | Microsoft Learn). Otherwise, the recommendation to use a built-in indexer is to use blob storage and copy the html file to index it (Azure Blob indexer - Azure Cognitive Search | Microsoft Learn). You may keep an automated job that copies the file every certain amount of time so you would know the index is kept up to date.
On Azure Static WebApp, the users won’t have access to the storage account. So, the users won’t have a way to interact with the storage account or access the files.
If your application needs to perform operations on files, then Azure Web App using Bring Your Own Storage would be an option to consider, instead of Static Web App.
This would allow your application to interact with the files as though they are part of the file system.
--
To benefit the community find the right answers, please do mark the post which was helpful by clicking on ‘Accept Answer’ & ‘Up-Vote’.